diff --git a/ffplay.c b/ffplay.c
index f3832291e0a325d4a0fe261d97cf141bbfff6d0d..2f24d4922a0c3e86b9ddd0f9fc46f618566e5974 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2904,6 +2904,7 @@ static int read_thread(void *arg)
                 if ((ret = av_copy_packet(&copy, &is->video_st->attached_pic)) < 0)
                     goto fail;
                 packet_queue_put(&is->videoq, &copy);
+                packet_queue_put_nullpacket(&is->videoq, is->video_stream);
             }
             is->queue_attachments_req = 0;
         }