aboutsummaryrefslogtreecommitdiffhomepage
path: root/demux
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2013-12-14 00:51:00 +0100
committerGravatar wm4 <wm4@nowhere>2013-12-14 00:51:00 +0100
commit600bccdf2aafba49f3aa19c774c3cdc025e93368 (patch)
tree9050b33bba108b00fb59cc6620282abe2245881b /demux
parentdd6d204e9e6b1c64280f486eb7536b70e600349b (diff)
stream: add function for dropping the buffer
And use it in demux_lavf.c. It looks like otherwise, some data might be left over, depending on how the hell av_seek_frame() behaves.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_lavf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 357e173322..4accb6d8fb 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -902,6 +902,7 @@ redo:
* call the new API instead of relying on av_seek_frame() to do this
* for us.
*/
+ stream_drop_buffers(demuxer->stream);
avio_flush(priv->avfc->pb);
av_seek_frame(priv->avfc, 0, stream_tell(demuxer->stream),
AVSEEK_FLAG_BYTE);