[FFmpeg-cvslog] r25426 - trunk/ffplay.c

cehoyos subversion
Sat Oct 9 19:50:17 CEST 2010


Author: cehoyos
Date: Sat Oct  9 19:50:17 2010
New Revision: 25426

Log:
Fix ffplay to keep calling av_read_frame even if EOF has been reached.

Patch by Michael Chinen, mchinen gmail

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Sat Oct  9 16:58:46 2010	(r25425)
+++ trunk/ffplay.c	Sat Oct  9 19:50:17 2010	(r25426)
@@ -2605,7 +2605,7 @@ static int decode_thread(void *arg)
             SDL_Delay(10);
             continue;
         }
-        if(url_feof(ic->pb) || eof) {
+        if(eof) {
             if(is->video_stream >= 0){
                 av_init_packet(pkt);
                 pkt->data=NULL;
@@ -2626,7 +2626,7 @@ static int decode_thread(void *arg)
         }
         ret = av_read_frame(ic, pkt);
         if (ret < 0) {
-            if (ret == AVERROR_EOF)
+            if (ret == AVERROR_EOF || url_feof(ic->pb))
                 eof=1;
             if (url_ferror(ic->pb))
                 break;



More information about the ffmpeg-cvslog mailing list