aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/riff.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-02-04 12:37:01 +0100
committerAnton Khirnov <anton@khirnov.net>2015-02-10 21:43:44 +0100
commit1509c018bd5b054a2354e20021ccbac9c934d213 (patch)
tree3fd78def01951d1a4bb81cb5d062beacc2378cb2 /libavformat/riff.c
parent6a5b8ca4329039fad44ad50b6496948f4bfacb4c (diff)
downloadffmpeg-1509c018bd5b054a2354e20021ccbac9c934d213.tar.gz
mpegts: relax restrictions on matching the packet start in read_header
analyze() is currently called both when probing and from read_header(). It determines the packet start by looking for the sync byte, followed by unset Transport Error Indicator and valid adaptation_field_control. This makes sense to do when probing, but once we already know the format is MPEG-TS, it is counterproductive to be so strict -- e.g. in some files the TEI might be set and analyze() might get called with a smaller buffer than the one used for probing, resulting in a failure.
Diffstat (limited to 'libavformat/riff.c')
0 files changed, 0 insertions, 0 deletions