movenc: Simplify code by using an existing local pointer
authorMartin Storsjö <martin@martin.st>
Sat, 11 Oct 2014 21:14:48 +0000 (00:14 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 12 Oct 2014 14:48:09 +0000 (17:48 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c

index 66e3c03..d8dc62a 100644 (file)
@@ -2979,7 +2979,7 @@ static int mov_flush_fragment(AVFormatContext *s)
             }
             info = &track->frag_info[track->nb_frag_info - 1];
             info->offset   = avio_tell(s->pb);
-            info->time     = mov->tracks[i].frag_start;
+            info->time     = track->frag_start;
             info->duration = duration;
             mov_write_tfrf_tags(s->pb, mov, track);