[FFmpeg-devel] [PATCH] Never shrink the buffer in ff_rewind_with_probe_data
Martin Storsjö
martin
Fri Jul 23 10:49:05 CEST 2010
Hi,
In ff_rewind_with_probe_data, if there is little unread data in the
ByteIOContext buffer (e.g. when reading over a network where less data
than requested may be returned in fill_buffer()), this may lead to
reducing the size of the ByteIOContext buffer to little more the probe
data size. This can lead to suboptimal aviobuf behaviour, e.g. making some
demuxers fail to do short seeks backwards (if the input isn't seekable).
This makes the mpegts demuxer work when probed over non-seekable http.
// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Never-shrink-the-buffer-in-ff_rewind_with_probe_data.patch
Type: text/x-diff
Size: 1952 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100723/fb61c55c/attachment.patch>
More information about the ffmpeg-devel
mailing list