From 2b177a46d270b5c2be15770d458e18441ecedffc Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 20 Sep 2019 00:17:03 +0200 Subject: [PATCH] avformat/movenc: Fix undefined shift Fixes the movenc FATE-test. Signed-off-by: Andreas Rheinhardt (cherry picked from commit 646799b42fd59ee79920e472795bf881b78bb5ce) Signed-off-by: Andreas Rheinhardt --- libavformat/movenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index cf3d969547..e8f26cb08f 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -4180,7 +4180,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;