[FFmpeg-cvslog] avidec: return 0, not packet size from read_packet().

Anton Khirnov git at videolan.org
Thu Oct 25 17:10:47 CEST 2012


ffmpeg | branch: release/0.10 | Anton Khirnov <anton at khirnov.net> | Fri Sep 28 15:26:48 2012 +0200| [5acd1c6561c0aa4f11eb9a83cf56790f1db50d23] | committer: Anton Khirnov

avidec: return 0, not packet size from read_packet().

(cherry picked from commit eeade678f0a2bac127aeed2fb68d8717a6463420)

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5acd1c6561c0aa4f11eb9a83cf56790f1db50d23
---

 libavformat/avidec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 13a39c0..af6ee8e 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1122,7 +1122,7 @@ resync:
             ast->packet_size= 0;
         }
 
-        return size;
+        return 0;
     }
 
     if ((err = avi_sync(s, 0)) < 0)



More information about the ffmpeg-cvslog mailing list