summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 3e52af79df..e9f9f6412b 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2074,11 +2074,13 @@ static int decode_thread(void *arg)
continue;
}
if(url_feof(ic->pb) || eof) {
+ if(is->video_stream >= 0){
av_init_packet(pkt);
pkt->data=NULL;
pkt->size=0;
pkt->stream_index= is->video_stream;
packet_queue_put(&is->videoq, pkt);
+ }
SDL_Delay(10);
continue;
}