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-05-20 03:33:45 +0200
commitd58dab562b7229961e837b3e5205aa52fdc00a3e (patch)
tree80d2b3bb63a56799c72a66d7b540b78172ebb365
parent21cc3c0d877981cfc30fe936f04cd68863469cbc (diff)
downloadffmpeg-d58dab562b7229961e837b3e5205aa52fdc00a3e.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)
-rw-r--r--libavformat/movenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 4d4d0cd024..d0bd1824e1 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -4475,7 +4475,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;