ffmpeg | branch: release/2.5 | Michael Niedermayer <michae...@gmx.at> | Fri Feb 
20 19:31:10 2015 +0100| [7fe22c3fe62df36f5f9f3a5c0792d294f29fb3b7] | committer: 
Michael Niedermayer

avformat/apngdec: Use 64bit ret to avoid overflow

Signed-off-by: Michael Niedermayer <michae...@gmx.at>
(cherry picked from commit 0e3d6e17dea758fdb7d0adfc57f7655551ab32b3)

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

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

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

diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index 5e7a4a1..a0a475a 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -321,7 +321,7 @@ static int decode_fctl_chunk(AVFormatContext *s, 
APNGDemuxContext *ctx, AVPacket
 static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
     APNGDemuxContext *ctx = s->priv_data;
-    int ret;
+    int64_t ret;
     int64_t size;
     AVIOContext *pb = s->pb;
     uint32_t len, tag;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to