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

Anton Khirnov git at videolan.org
Mon Feb 11 12:41:04 CET 2013


ffmpeg | branch: release/0.5 | Anton Khirnov <anton at khirnov.net> | Fri Sep 28 15:26:48 2012 +0200| [2ae6bdbb9b173932493c74efecd2048fe592e170] | committer: Reinhard Tartler

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=2ae6bdbb9b173932493c74efecd2048fe592e170
---

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 74edebf..46dffa1 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -786,7 +786,7 @@ resync:
             ast->packet_size= 0;
         }
 
-        return size;
+        return 0;
     }
 
     memset(d, -1, sizeof(int)*8);



More information about the ffmpeg-cvslog mailing list