Browse code

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

Originally committed as revision 17458 to svn://svn.ffmpeg.org/ffmpeg/trunk

Peter Ross authored on 2009/02/19 21:21:09
Showing 1 changed files
... ...
@@ -2098,7 +2098,7 @@ static int decode_thread(void *arg)
2098 2098
         }
2099 2099
         ret = av_read_frame(ic, pkt);
2100 2100
         if (ret < 0) {
2101
-            if (url_ferror(ic->pb) == 0) {
2101
+            if (ret != AVERROR_EOF && url_ferror(ic->pb) == 0) {
2102 2102
                 SDL_Delay(100); /* wait for user event */
2103 2103
                 continue;
2104 2104
             } else