diff --git a/ffplay.c b/ffplay.c
index 40647ac9772a98a8fdeb21701479781c6e970771..6bd34607695472414a7d0dd2e031ba19aebde388 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1915,6 +1915,7 @@ static int video_thread(void *arg)
             stream_toggle_pause(is);
     }
  the_end:
+    avcodec_flush_buffers(is->video_st->codec);
 #if CONFIG_AVFILTER
     av_freep(&vfilters);
     avfilter_graph_free(&graph);