Commit 4c82ccad authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mov: Avoid "Unintended sign extension"

Fixes CID1361957
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 8392794c
...@@ -4235,7 +4235,7 @@ static int mov_seek_auxiliary_info(AVFormatContext *s, MOVStreamContext *sc) ...@@ -4235,7 +4235,7 @@ static int mov_seek_auxiliary_info(AVFormatContext *s, MOVStreamContext *sc)
int i; int i;
if (sc->cenc.auxiliary_info_default_size) { if (sc->cenc.auxiliary_info_default_size) {
auxiliary_info_seek_offset = sc->cenc.auxiliary_info_default_size * sc->current_sample; auxiliary_info_seek_offset = (size_t)sc->cenc.auxiliary_info_default_size * sc->current_sample;
} else if (sc->cenc.auxiliary_info_sizes) { } else if (sc->cenc.auxiliary_info_sizes) {
if (sc->current_sample > sc->cenc.auxiliary_info_sizes_count) { if (sc->current_sample > sc->cenc.auxiliary_info_sizes_count) {
av_log(s, AV_LOG_ERROR, "current sample %d greater than the number of auxiliary info sample sizes %"SIZE_SPECIFIER"\n", av_log(s, AV_LOG_ERROR, "current sample %d greater than the number of auxiliary info sample sizes %"SIZE_SPECIFIER"\n",
......
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