Browse Source

libmpcodecs/vf_uspp: check avcodec_open() return code

Fixes CID1135747

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
michael Michael Niedermayer 11 years ago
parent
commit
04e140daa2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavfilter/libmpcodecs/vf_uspp.c

+ 2
- 1
libavfilter/libmpcodecs/vf_uspp.c View File

@@ -241,7 +241,8 @@ static int config(struct vf_instance *vf,
avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
avctx_enc->global_quality= 123;
av_dict_set(&opts, "no_bitstream", "1", 0);
avcodec_open2(avctx_enc, enc, &opts);
if (avcodec_open2(avctx_enc, enc, &opts) < 0)
return 0;
av_dict_free(&opts);
assert(avctx_enc->codec);
}


Loading…
Cancel
Save