Commit 04e140da authored by michael's avatar michael Committed by Michael Niedermayer

libmpcodecs/vf_uspp: check avcodec_open() return code

Fixes CID1135747
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e0877aa5
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment