dvdsubdec: reset buffer size on invalid over-large packets
authorwm4 <nfxjfg@googlemail.com>
Thu, 28 May 2015 12:30:14 +0000 (14:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 28 May 2015 13:31:07 +0000 (15:31 +0200)
commit0ad04bf6a29ee54374370d9fe1a6543439d6aa02
treeb87ef56c5c54a66116e2efb2f4c2b42508d9ba4d
parentb06e82e73897e7afd1363f60015f5cbf6d39c984
dvdsubdec: reset buffer size on invalid over-large packets

Otherwise it will never be reset, and remain "stuck" in this state
forever. Can happen when seeking: the decoder will receive fragments
from different file positions, which triggers the condition easily.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvdsubdec.c