]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - ffplay.c
frsh: Export information about the last RTP contract and VRES
[frescor/ffmpeg.git] / ffplay.c
index e9f9f6412b0f3aee7339e207cf552f6ae71258a4..cc12b4a97dd31e23619b65e4b3df7c36a13faa5c 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -2063,6 +2063,7 @@ static int decode_thread(void *arg)
                 }
             }
             is->seek_req = 0;
+            eof= 0;
         }
 
         /* if the queue are full, no need to read more */
@@ -2075,11 +2076,11 @@ static int decode_thread(void *arg)
         }
         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);
+                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;