aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-20 00:17:03 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-03 14:13:49 +0200
commit2b177a46d270b5c2be15770d458e18441ecedffc (patch)
tree524509ac0e4eb74229e3f85fb50511abd0df7c6d
parentf4bcf5742e930384fa32616437c7ab8c65e19357 (diff)
downloadffmpeg-2b177a46d270b5c2be15770d458e18441ecedffc.tar.gz
avformat/movenc: Fix undefined shift
Fixes the movenc FATE-test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 646799b42fd59ee79920e472795bf881b78bb5ce) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavformat/movenc.c3
1 files changed, 2 insertions, 1 deletions
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;