Commit 830f7f18 authored by Michael Niedermayer's avatar Michael Niedermayer

mmsh: fix integer overflow in mmsh_seek()

Fixes CID703745
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d3b8d56e
...@@ -394,7 +394,7 @@ static int64_t mmsh_seek(URLContext *h, int64_t pos, int whence) ...@@ -394,7 +394,7 @@ static int64_t mmsh_seek(URLContext *h, int64_t pos, int whence)
MMSContext *mms = &mmsh->mms; MMSContext *mms = &mmsh->mms;
if(pos == 0 && whence == SEEK_CUR) 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); return AVERROR(ENOSYS);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment