[FFmpeg-devel] [PATCH] dvdsubdec: reset buffer size on invalid over-large packets
Michael Niedermayer
michaelni at gmx.at
Thu May 28 15:53:43 CEST 2015
On Thu, May 28, 2015 at 02:30:14PM +0200, wm4 wrote:
> 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.
> ---
> Minor fix: reset this field in append_to_cached_buf() directly. My previous
> patch missed one caller.
> ---
> libavcodec/dvdsubdec.c | 1 +
> 1 file changed, 1 insertion(+)
applied
maybe when the buffer is discarded the current packet should be
reconsidered instead of failing and droping the current packet
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150528/9e66b979/attachment.asc>
More information about the ffmpeg-devel
mailing list