[FFmpeg-cvslog] mmsh: fix integer overflow in mmsh_seek()
Michael Niedermayer
git at videolan.org
Sat Oct 20 20:27:55 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 20 19:08:41 2012 +0200| [830f7f189f7b41221b29d40e8127cf54a140ae86] | committer: Michael Niedermayer
mmsh: fix integer overflow in mmsh_seek()
Fixes CID703745
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=830f7f189f7b41221b29d40e8127cf54a140ae86
---
libavformat/mmsh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c
index d6e3982..86a0575 100644
--- a/libavformat/mmsh.c
+++ b/libavformat/mmsh.c
@@ -394,7 +394,7 @@ static int64_t mmsh_seek(URLContext *h, int64_t pos, int whence)
MMSContext *mms = &mmsh->mms;
if(pos == 0 && whence == SEEK_CUR)
- return mms->asf_header_read_size + mms->remaining_in_len + mmsh->chunk_seq * mms->asf_packet_len;
+ return mms->asf_header_read_size + mms->remaining_in_len + mmsh->chunk_seq * (int64_t)mms->asf_packet_len;
return AVERROR(ENOSYS);
}
More information about the ffmpeg-cvslog
mailing list