Never shrink the ByteIOContext buffer in ff_rewind_with_probe_data
authorMartin Storsjö <martin@martin.st>
Sat, 24 Jul 2010 09:04:44 +0000 (09:04 +0000)
committerMartin Storsjö <martin@martin.st>
Sat, 24 Jul 2010 09:04:44 +0000 (09:04 +0000)
commit496c645d3b3bb5ded7f5ce918ca21d3acac6b8df
tree6a7d7efa6a484e9f90e7fb0ac1a2e18b7134baa8
parent8dd25c52cbf57d4a28885abcc950c27a24606036
Never shrink the ByteIOContext buffer in ff_rewind_with_probe_data

If there is little unread data in the ByteIOContext 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).

Originally committed as revision 24478 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/aviobuf.c