From: Måns Rullgård Date: Fri, 18 Jul 2008 01:07:17 +0000 (+0000) Subject: MPEGTS: Improve probe function X-Git-Tag: v0.5~3628 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6002ea14d457de10340d1dc907643294a77d504;p=platform%2Fupstream%2Flibav.git 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 --- 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];