[SCM] libav/experimental: AVI demuxer: return AVERROR_EOF upon detection of end of file.

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


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

    AVI demuxer: return AVERROR_EOF upon detection of end of file.
    
    Originally committed as revision 17456 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 69c9051..e3cc14c 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -870,7 +870,7 @@ resync:
         }
     }
 
-    return -1;
+    return AVERROR_EOF;
 }
 
 /* XXX: We make the implicit supposition that the positions are sorted

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list