aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-02-16 20:53:07 +0100
committerMarton Balint <cus@passwd.hu>2013-02-27 21:34:12 +0100
commit48e43a1999fb47c0afb1b5c148e48262c84ec5ad (patch)
tree8cf5fddaed85db45a7fcca07f7d7f35e1b0b5c8d
parent4be7d578a3cf03a77a277c78d6cf1420f87a7593 (diff)
downloadffmpeg-48e43a1999fb47c0afb1b5c148e48262c84ec5ad.tar.gz
ffplay: drop remaining frames in current audio avpacket when seeking
Fixes ticket #1928. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--ffplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index d5a9dc362c..ed53023854 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2090,6 +2090,9 @@ static int audio_decode_frame(VideoState *is)
} else
avcodec_get_frame_defaults(is->frame);
+ if (is->audioq.serial != is->audio_pkt_temp_serial)
+ break;
+
if (is->paused)
return -1;