[FFmpeg-cvslog] avformat/movenc: Fix undefined shift

Andreas Rheinhardt git at videolan.org
Fri Jul 3 20:31:02 EEST 2020


ffmpeg | branch: release/3.2 | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Sep 20 00:17:03 2019 +0200| [d354f4425de22ad4a04049bb63d31b631cb8880b] | committer: Andreas Rheinhardt

avformat/movenc: Fix undefined shift

Fixes the movenc FATE-test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
(cherry picked from commit 646799b42fd59ee79920e472795bf881b78bb5ce)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

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

 libavformat/movenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 5e65ad3dc6..03df35f2da 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -4018,7 +4018,8 @@ static int mov_write_sidx_tag(AVIOContext *pb,
 {
     int64_t pos = avio_tell(pb), offset_pos, end_pos;
     int64_t presentation_time, duration, offset;
-    int starts_with_SAP, i, entries;
+    unsigned starts_with_SAP;
+    int i, entries;
 
     if (track->entry) {
         entries = 1;



More information about the ffmpeg-cvslog mailing list