movenc: Add a missed const
authorMartin Storsjö <martin@martin.st>
Wed, 18 May 2016 10:49:57 +0000 (13:49 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 18 May 2016 18:59:48 +0000 (21:59 +0300)
This was missed in e1eb0fc9601, when ff_interleaved_peek was
changed to include const during the evolution of the patch.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c

index ae754e13e3e3008da27df433d3a9c7dab6b499e7..a5e374e491032c25687dd64486271d9135ca7e06 100644 (file)
@@ -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) {
     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)
             if (next) {
                 track->track_duration = next->dts - track->start_dts;
                 if (next->pts != AV_NOPTS_VALUE)