[FFmpeg-cvslog] movenc: Simplify code by using an existing local pointer

Martin Storsjö git at videolan.org
Mon Oct 13 01:20:47 CEST 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sun Oct 12 00:14:48 2014 +0300| [e44ee1eb8db7393e9d43207c2e1812720e292e6d] | committer: Martin Storsjö

movenc: Simplify code by using an existing local pointer

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e44ee1eb8db7393e9d43207c2e1812720e292e6d
---

 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);
 



More information about the ffmpeg-cvslog mailing list