Mercurial > mplayer.hg
changeset 37103:bc3d67969fcc
libmpcodecs/vf_uspp: check avcodec_open() return code
Fixes CID1135747
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
author | michael |
---|---|
date | Sat, 10 May 2014 23:48:24 +0000 |
parents | 0bbd04a5f920 |
children | 91b00a4407cd |
files | libmpcodecs/vf_uspp.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_uspp.c Sat May 10 20:23:21 2014 +0000 +++ b/libmpcodecs/vf_uspp.c Sat May 10 23:48:24 2014 +0000 @@ -239,7 +239,8 @@ 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); }