mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
libmpcodecs/vf_uspp: check avcodec_open() return code
Fixes CID1135747 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e0877aa544
commit
04e140daa2
@ -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…
x
Reference in New Issue
Block a user