diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2014-05-10 23:48:24 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-11 02:13:28 +0200 |
commit | 04e140daa21c1e4e7c61009fadd211c19e080863 (patch) | |
tree | 4533da22700498d3cd417dc99f9361fa4786ac6d | |
parent | e0877aa544b029c2ba0769233781733ba184fa02 (diff) | |
download | ffmpeg-streaming-04e140daa21c1e4e7c61009fadd211c19e080863.zip ffmpeg-streaming-04e140daa21c1e4e7c61009fadd211c19e080863.tar.gz |
libmpcodecs/vf_uspp: check avcodec_open() return code
Fixes CID1135747
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/libmpcodecs/vf_uspp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/libmpcodecs/vf_uspp.c b/libavfilter/libmpcodecs/vf_uspp.c index 3923f17..c9d9c1f 100644 --- a/libavfilter/libmpcodecs/vf_uspp.c +++ b/libavfilter/libmpcodecs/vf_uspp.c @@ -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); } |