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

Anton Khirnov git at videolan.org
Sat Sep 29 15:16:34 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Sep 28 15:26:48 2012 +0200| [eeade678f0a2bac127aeed2fb68d8717a6463420] | committer: Anton Khirnov

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

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

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 9360e8e..b70367f 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