diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-09-21 18:22:35 +0200 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2015-09-22 17:41:01 +0200 |
commit | 9aab22223908180cbfc3c5fa1b19b58d806b5097 (patch) | |
tree | e323842b08df512d585d16563b4a9349762af935 /libavformat/msnwc_tcp.c | |
parent | f874e2728b0925b2ec30dd7ec64815f15078c06f (diff) | |
download | ffmpeg-9aab22223908180cbfc3c5fa1b19b58d806b5097.tar.gz |
avcodec/dvdsubdec: reject some broken packets
If cmd_pos is broken, this would just keep accumulating packets in the
reassembly buffer, until it fails and flushes the buffer on overflow.
Since packets are usually rather small, this will take a lot of subtitle
packets. The perceived effect is that subtitles are not displayed
anymore after the faulty packet was passed to the decoder.
I'm not terribly sure about this, but on the other hand this code is
active only when fragmented packets need to be reassembled.
Fixes sample file in trac issue #4872.
Diffstat (limited to 'libavformat/msnwc_tcp.c')
0 files changed, 0 insertions, 0 deletions