diff options
author | Karthick J <kjeyapal@akamai.com> | 2019-03-24 15:00:36 +0300 |
---|---|---|
committer | Karthick J <kjeyapal@akamai.com> | 2019-04-02 08:45:57 +0300 |
commit | 3d0894990d174b1328a2c31e40b3efce13efbe53 (patch) | |
tree | 4d0c2bbebbb8464b1f6082e5ca6da05e009f3b2c | |
parent | 326cec3771f908c2e9bbf98d945317e6fbdc0053 (diff) |
avformat/movenc: Fix skip_trailer when global_sidx is enabled
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 26cb2e6ea1..7f5dcd703e 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6745,9 +6745,8 @@ static int mov_write_trailer(AVFormatContext *s) avio_seek(pb, mov->reserved_header_pos, SEEK_SET); mov_write_sidx_tags(pb, mov, -1, 0); avio_seek(pb, end, SEEK_SET); - avio_write_marker(s->pb, AV_NOPTS_VALUE, AVIO_DATA_MARKER_TRAILER); - mov_write_mfra_tag(pb, mov); - } else if (!(mov->flags & FF_MOV_FLAG_SKIP_TRAILER)) { + } + if (!(mov->flags & FF_MOV_FLAG_SKIP_TRAILER)) { avio_write_marker(s->pb, AV_NOPTS_VALUE, AVIO_DATA_MARKER_TRAILER); mov_write_mfra_tag(pb, mov); } |