[SCM] libav/experimental: FFplay: Stop processing input file when AVERROR_EOF is returned from av_read_frame()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:38:53 UTC 2013


The following commit has been merged in the experimental branch:
commit edf9b2f040b66b0d1096a144f558c73baa3ae6b4
Author: Peter Ross <pross at xvid.org>
Date:   Thu Feb 19 12:21:09 2009 +0000

    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

diff --git a/ffplay.c b/ffplay.c
index 4785f2d..964408b 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list