Browse Source

cmdutils: fix null pointer dereference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
f3abdf4392
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cmdutils.c

+ 2
- 2
cmdutils.c View File

@@ -530,8 +530,8 @@ int opt_default(void *optctx, const char *opt, const char *arg)
#endif #endif
#if CONFIG_AVRESAMPLE #if CONFIG_AVRESAMPLE
rc_class = avresample_get_class(); rc_class = avresample_get_class();
if (av_opt_find(&rc_class, opt, NULL, 0,
AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ)) {
if ((o=av_opt_find(&rc_class, opt, NULL, 0,
AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ))) {
av_dict_set(&resample_opts, opt, arg, FLAGS); av_dict_set(&resample_opts, opt, arg, FLAGS);
consumed = 1; consumed = 1;
} }


Loading…
Cancel
Save