From e44ee1eb8db7393e9d43207c2e1812720e292e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 12 Oct 2014 00:14:48 +0300 Subject: [PATCH] movenc: Simplify code by using an existing local pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 66e3c03012..d8dc62a181 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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);