[vlc-commits] codec: videotoolbox: error if SetH264DecoderInfo fails

Thomas Guillem git at videolan.org
Thu Sep 28 11:10:35 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Sep 28 11:04:17 2017 +0200| [6ab01528c3f4e95d1c2522e04c4ee8be743f1db0] | committer: Thomas Guillem

codec: videotoolbox: error if SetH264DecoderInfo fails

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ab01528c3f4e95d1c2522e04c4ee8be743f1db0
---

 modules/codec/videotoolbox.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 21fb95c8fe..8fa4904d52 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -884,7 +884,8 @@ static int SetupDecoderExtradata(decoder_t *p_dec)
             p_sys->extradataInfo = ExtradataInfoCreate(CFSTR("avcC"),
                                             p_dec->fmt_in.p_extra,
                                             p_dec->fmt_in.i_extra);
-            SetH264DecoderInfo(p_dec, p_sys->extradataInfo);
+            if (SetH264DecoderInfo(p_dec, p_sys->extradataInfo) != VLC_SUCCESS)
+                return VLC_EGENERIC;
         }
         else
         {



More information about the vlc-commits mailing list