Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-20 21:31:10 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-02-20 21:31:10 +0300
commit0e3d6e17dea758fdb7d0adfc57f7655551ab32b3 (patch)
treea9926eebffe67f691fcb16ca4394b4c85e3fa981 /libavformat/apngdec.c
parentd4936d28a11fac6c9c4b4df9625185f93b086986 (diff)
avformat/apngdec: Use 64bit ret to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/apngdec.c')
-rw-r--r--libavformat/apngdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index 5e7a4a1150..a0a475a350 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;