diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-15 04:15:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-15 04:15:34 +0100 |
commit | 7ea396381743c300f8450baa3054b62b1f3e68d0 (patch) | |
tree | 8bfd6b62df225bcb86a097a3915646d784d08f32 /libavformat/mpegts.c | |
parent | a72580fc9efeb674257b4754ca5de0fa34b09be8 (diff) | |
download | ffmpeg-7ea396381743c300f8450baa3054b62b1f3e68d0.tar.gz |
mpegts: Completely ignore H222 spec and consider reserved adaption
fields to be perfectly fine mpeg TS.
Fixes Ticket580
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 118f5325c7..d3f8a8a783 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -399,7 +399,7 @@ 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<size-3; i++){ - if(buf[i] == 0x47 && !(buf[i+1] & 0x80) && (buf[i+3] & 0x30)){ + if(buf[i] == 0x47 && !(buf[i+1] & 0x80) && buf[i+3] != 0x47){ stat[x]++; if(stat[x] > best_score){ best_score= stat[x]; |