[vlc-commits] demux: ts: fix avc probing

Francois Cartegnie git at videolan.org
Fri Aug 28 14:22:36 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Aug 28 14:22:07 2015 +0200| [c482ee9271b41ec9298b99062b1230427ab1baab] | committer: Francois Cartegnie

demux: ts: fix avc probing

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

 modules/demux/mpeg/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index a3f02e1..233035f 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -807,7 +807,7 @@ static void ProbePES( demux_t *p_demux, ts_pid_t *pid, const uint8_t *p_pesstart
     /* VIDEO STREAM */
     else if( p_pes[3] >= 0xE0 && p_pes[3] <= 0xEF )
     {
-        if( !memcmp( p_data, "\x00\x00\x00", 4 ) )
+        if( !memcmp( p_data, "\x00\x00\x00\x01", 4 ) )
         {
             pid->probed.i_type = 0x1b;
             pid->probed.i_fourcc = VLC_CODEC_H264;



More information about the vlc-commits mailing list