From c6002ea14d457de10340d1dc907643294a77d504 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Fri, 18 Jul 2008 01:07:17 +0000 Subject: [PATCH] MPEGTS: Improve probe function When a sync byte is found, check that transport_error_indicator is zero, and adaptation_field_control is valid (non-zero). Originally committed as revision 14274 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpegts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index a10f5dc..5067f77 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -347,8 +347,8 @@ static int analyze(const uint8_t *buf, int size, int packet_size, int *index){ memset(stat, 0, packet_size*sizeof(int)); - for(x=i=0; i best_score){ best_score= stat[x]; -- 2.7.4