[vlc-commits] videotoolbox: reject non-video ES

Felix Paul Kühne git at videolan.org
Tue Oct 13 18:33:07 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Oct 13 18:32:46 2015 +0200| [6d888d8c3cd534c858c1dc41564396840c06639b] | committer: Felix Paul Kühne

videotoolbox: reject non-video ES

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 0da803c..0b3ded2 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -632,6 +632,9 @@ static int OpenDecoder(vlc_object_t *p_this)
     }
 #endif
 
+    if (p_dec->fmt_in.i_cat != VIDEO_ES)
+        return VLC_EGENERIC;
+
     /* check quickly if we can digest the offered data */
     CMVideoCodecType codec;
     codec = CodecPrecheck(p_dec);



More information about the vlc-commits mailing list