Browse Source

avformat/mpegts: Check adaption field control in analyze() more instead of transport_error_indicator

transport_error_indicator is not required to be 0

Fixes probing
Fixes Ticket 4862

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Michael Niedermayer 10 years ago
parent
commit
ee7a642b0e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegts.c

+ 1
- 1
libavformat/mpegts.c View File

@@ -543,7 +543,7 @@ static int analyze(const uint8_t *buf, int size, int packet_size, int *index,

for (i = 0; i < size - 3; i++) {
if (buf[i] == 0x47 &&
(!probe || (!(buf[i + 1] & 0x80) && buf[i + 3] != 0x47))) {
(!probe || (buf[i + 3] & 0x30))) {
int x = i % packet_size;
stat[x]++;
stat_all++;


Loading…
Cancel
Save