[FFmpeg-cvslog] avformat/mvdec: Use 64bit for ret to avoid overflow
Michael Niedermayer
git at videolan.org
Fri Mar 13 17:49:04 CET 2015
ffmpeg | branch: release/1.1 | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 20 20:41:35 2015 +0100| [aef0c97b45fe97e1c9e3d4e089a25b38ba92ee55] | committer: Michael Niedermayer
avformat/mvdec: Use 64bit for ret to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 26c0cc154e06cb0064b3a3da49447ac44d82444f)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aef0c97b45fe97e1c9e3d4e089a25b38ba92ee55
---
libavformat/mvdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c
index bb1c5d0..81ebb60 100644
--- a/libavformat/mvdec.c
+++ b/libavformat/mvdec.c
@@ -354,7 +354,7 @@ static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
AVStream *st = avctx->streams[mv->stream_index];
const AVIndexEntry *index;
int frame = mv->frame[mv->stream_index];
- int ret;
+ int64_t ret;
uint64_t pos;
if (frame < st->nb_frames) {
More information about the ffmpeg-cvslog
mailing list