[FFmpeg-devel] [PATCH 08/11] avformat/movenc: Fix undefined shift

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Sep 20 01:17:03 EEST 2019


Fixes the movenc FATE-test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavformat/movenc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index edddfeeb00..ce9fc8c5aa 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1,3 +1,4 @@
+
 /*
  * MOV, 3GP, MP4 muxer
  * Copyright (c) 2003 Thomas Raivio
@@ -4511,7 +4512,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;
-- 
2.20.1



More information about the ffmpeg-devel mailing list