aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 5ac33c6f23..e84b95cc22 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1922,6 +1922,7 @@ static int decode_thread(void *arg)
}else{
if (is->audio_stream >= 0) {
packet_queue_flush(&is->audioq);
+ avcodec_flush_buffers(ic->streams[audio_index]->codec);
}
if (is->subtitle_stream >= 0) {
packet_queue_flush(&is->subtitleq);