[FFmpeg-cvslog] avformat/mov: Avoid "Unintended sign extension"

Michael Niedermayer git at videolan.org
Tue May 24 04:40:30 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue May 24 04:07:09 2016 +0200| [4c82ccad2b3c813015a17e0c5bbbf6bfd0a6b623] | committer: Michael Niedermayer

avformat/mov: Avoid "Unintended sign extension"

Fixes CID1361957

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c82ccad2b3c813015a17e0c5bbbf6bfd0a6b623
---

 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 47af98c..e7d17f7 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",



More information about the ffmpeg-cvslog mailing list