From 600bccdf2aafba49f3aa19c774c3cdc025e93368 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 14 Dec 2013 00:51:00 +0100 Subject: 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. --- demux/demux_lavf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'demux') 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); -- cgit v1.2.3