avformat: Append data in fill_buffer() when possible
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2013 16:15:50 +0000 (18:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Jul 2013 17:13:38 +0000 (19:13 +0200)
commit2ca48e466675a8a3630061cd2c15325eab8eda97
tree230416e83253a2eb33f50fcbecea5cbde5ef6278
parentbf18abb2eb79c00c69f6f83ede64536e3297793c
avformat: Append data in fill_buffer() when possible

Data is appended in fill_buffer() when there is sufficient space left
and the data pointer only reset when needed.
Previously the data pointer was more often reset, loosing more seekback
space than otherwise needed.

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