diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-17 20:36:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-17 20:36:30 +0200 |
commit | a0e0e1e19254d094d7d2cacaee9721fab19ecd21 (patch) | |
tree | 06420c9d5ef88bf3603488f0aad6db84b5570194 /libavformat/ffmdec.c | |
parent | 71bc8c95d7cac552d3a2cb3120e41207dfb48e50 (diff) | |
download | ffmpeg-a0e0e1e19254d094d7d2cacaee9721fab19ecd21.tar.gz |
ffmdec: fix hypothetical overflows
Fixes CID703739
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r-- | libavformat/ffmdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index 66306bf010..d4e605680a 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -111,8 +111,8 @@ static int ffm_read_data(AVFormatContext *s, if (ffm->first_packet || (frame_offset & 0x8000)) { if (!frame_offset) { /* This packet has no frame headers in it */ - if (avio_tell(pb) >= ffm->packet_size * 3) { - avio_seek(pb, -ffm->packet_size * 2, SEEK_CUR); + if (avio_tell(pb) >= ffm->packet_size * 3LL) { + avio_seek(pb, -ffm->packet_size * 2LL, SEEK_CUR); goto retry_read; } /* This is bad, we cannot find a valid frame header */ |