diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-24 05:07:09 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-24 05:37:50 +0300 |
commit | 4c82ccad2b3c813015a17e0c5bbbf6bfd0a6b623 (patch) | |
tree | 4ada81e04c7bbb50f4ff0542a0de6d3a8fda4b4b /libavformat | |
parent | 8392794c9227768cfaffbebbb5f14173814f25f1 (diff) |
avformat/mov: Avoid "Unintended sign extension"
Fixes CID1361957
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 47af98cead..e7d17f7282 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4235,7 +4235,7 @@ static int mov_seek_auxiliary_info(AVFormatContext *s, MOVStreamContext *sc) int i; 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) { 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", |