[MPlayer-cvslog] r37199 - trunk/libmpcodecs/vf_uspp.c

michael subversion at mplayerhq.hu
Sun May 11 01:48:24 CEST 2014


Author: michael
Date: Sun May 11 01:48:24 2014
New Revision: 37199

Log:
libmpcodecs/vf_uspp: check avcodec_open() return code

Fixes CID1135747

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

Modified:
   trunk/libmpcodecs/vf_uspp.c

Modified: trunk/libmpcodecs/vf_uspp.c
==============================================================================
--- trunk/libmpcodecs/vf_uspp.c	Sat May 10 22:23:21 2014	(r37198)
+++ trunk/libmpcodecs/vf_uspp.c	Sun May 11 01:48:24 2014	(r37199)
@@ -239,7 +239,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);
         }


More information about the MPlayer-cvslog mailing list