Module: libav
Branch: master
Commit: e44ee1eb8db7393e9d43207c2e1812720e292e6d

Author:    Martin Storsjö <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Sun Oct 12 00:14:48 2014 +0300

movenc: Simplify code by using an existing local pointer

Signed-off-by: Martin Storsjö <[email protected]>

---

 libavformat/movenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 66e3c03..d8dc62a 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);
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to