aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-10-12 00:14:48 +0300
committerMartin Storsjö <martin@martin.st>2014-10-12 17:48:09 +0300
commite44ee1eb8db7393e9d43207c2e1812720e292e6d (patch)
tree88f9c99e0c3983e7080c7043b3a0da8b38f50a64
parentdad12ce452a9d69c0d9d53c375003947d5f1b02e (diff)
downloadffmpeg-e44ee1eb8db7393e9d43207c2e1812720e292e6d.tar.gz
movenc: Simplify code by using an existing local pointer
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
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);