]> git.sesse.net Git - ffmpeg/commit
avformat/movenc, segafilmenc: Remove unnecessary avio_tell()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 16 Jan 2020 04:49:14 +0000 (05:49 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 17 Jan 2020 19:17:55 +0000 (20:17 +0100)
commit61e0d71946f58e8864776d7495318103c0552754
tree30fa59740f50e746279205855614f51d4a19818a
parentc95dfe5cce98cde3e7fb14fbd04b3897f3927cec
avformat/movenc, segafilmenc: Remove unnecessary avio_tell()

When the faststart option for the mov/mp4 muxer is used, the current
position (i.e. the size of the already written data pre-shifting) was
evaluated twice: First in an initialization and then again later,
overwriting the first value without having ever touched it. So remove
the initialization.

Also, the clone of this code in the Sega FILM muxer behaves the same and
has been treated the same.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c
libavformat/segafilmenc.c