summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index ae754e13e3..a5e374e491 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3196,7 +3196,7 @@ static int mov_flush_fragment(AVFormatContext *s, int force)
for (i = 0; i < s->nb_streams; i++) {
MOVTrack *track = &mov->tracks[i];
if (!track->end_reliable) {
- AVPacket *next = ff_interleaved_peek(s, i);
+ const AVPacket *next = ff_interleaved_peek(s, i);
if (next) {
track->track_duration = next->dts - track->start_dts;
if (next->pts != AV_NOPTS_VALUE)