mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 23:33:07 +00:00
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>
This commit is contained in:
parent
a72580fc9e
commit
7ea3963817
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user