summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avplay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/avplay.c b/avplay.c
index f20b6315fb..96551a677e 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2114,8 +2114,10 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
if ((new_packet = packet_queue_get(&is->audioq, pkt, 1)) < 0)
return -1;
- if (pkt->data == flush_pkt.data)
+ if (pkt->data == flush_pkt.data) {
avcodec_flush_buffers(dec);
+ flush_complete = 0;
+ }
*pkt_temp = *pkt;