[SCM] libav/experimental: return AVERROR_EOF

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:46:45 UTC 2013


The following commit has been merged in the experimental branch:
commit 350f2c2cef6ef42975301cdfff4483868463f0fe
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Sat May 30 06:15:27 2009 +0000

    return AVERROR_EOF
    
    Originally committed as revision 18992 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mov.c b/libavformat/mov.c
index ef097a8..95341e6 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2025,7 +2025,7 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
         if (!url_is_streamed(s->pb) ||
             mov_read_default(mov, s->pb, (MOVAtom){ 0, 0, INT64_MAX }) < 0 ||
             url_feof(s->pb))
-            return -1;
+            return AVERROR_EOF;
         dprintf(s, "read fragments, offset 0x%llx\n", url_ftell(s->pb));
         goto retry;
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list