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

pross subversion
Thu Feb 19 13:21:09 CET 2009


Author: pross
Date: Thu Feb 19 13:21:09 2009
New Revision: 17458

Log:
FFplay: Stop processing input file when AVERROR_EOF is returned from av_read_frame()

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Thu Feb 19 13:19:55 2009	(r17457)
+++ trunk/ffplay.c	Thu Feb 19 13:21:09 2009	(r17458)
@@ -2098,7 +2098,7 @@ static int decode_thread(void *arg)
         }
         ret = av_read_frame(ic, pkt);
         if (ret < 0) {
-            if (url_ferror(ic->pb) == 0) {
+            if (ret != AVERROR_EOF && url_ferror(ic->pb) == 0) {
                 SDL_Delay(100); /* wait for user event */
                 continue;
             } else




More information about the ffmpeg-cvslog mailing list