aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bitstream.c
diff options
context:
space:
mode:
authorJohn Högberg <john.hogberg@ericsson.com>2015-04-28 10:20:33 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-04-28 21:09:59 +0200
commit82de8d71118f4eafd6a43e9ea9169bd411793798 (patch)
tree81cf98110ab5f76683d6df27c759988e650aec1d /libavcodec/bitstream.c
parent0c69164f451cc9ca6ce9d6e7568083e2776bc845 (diff)
downloadffmpeg-82de8d71118f4eafd6a43e9ea9169bd411793798.tar.gz
mpegts: Update the PSI/SI table only if the version change
If a PAT is finished while a PMT section filter is opened but not yet finished, the PMT section filter is closed and all the received data is discarded. This is usually not an issue but some multiplexers (With very quick PAT/PMT repetition settings) consistently emit a PMT section start, then a PAT, and then the rest of the PMT, causing the aforementioned behavior to result in no PMT being finished. In the most pathologic situation the stream information are lost and the probe fallback miscategorizes subtitles as mp3 audio. Avoid the issue through eliminating redundant PSI/SI table updates by checking their version field, which is required by the standard to be incremented on every change no matter how minor. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/bitstream.c')
0 files changed, 0 insertions, 0 deletions