aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-12-29 18:35:38 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-12-29 18:35:38 +0000
commit243cc4c34a8aca1025160a4b8f6c08c6419bf3b6 (patch)
treeef091a0234a12a76db167f6b7ab65a1803c82105
parent34c9c1baf4846a78fd46763fb7a7143120cf5863 (diff)
downloadffmpeg-243cc4c34a8aca1025160a4b8f6c08c6419bf3b6.tar.gz
clear internal queue when seeking
Originally committed as revision 11351 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 20e071b8d2..8d201b6e69 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2688,6 +2688,8 @@ matroska_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp,
if (index < 0)
return 0;
+ matroska_clear_queue(matroska);
+
/* do the seek */
url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);