diff options
author | Marton Balint <cus@passwd.hu> | 2020-01-04 19:31:14 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-01-07 21:51:45 +0100 |
commit | c05d82fa92b38ac0459a0605872991d8fa9e2252 (patch) | |
tree | 763deec24366bffee5ca48c32694b35c82f7b868 /libavformat/wtvenc.c | |
parent | 4bf90e095b361cb11371921bf6eb357831d857b2 (diff) | |
download | ffmpeg-c05d82fa92b38ac0459a0605872991d8fa9e2252.tar.gz |
avformat: remove unneeded avio_flush() calls from the end of write_trailer functions
The IO context is always flushed by libavformat/mux.c after write_trailer is
called, so this change should have no effect at all.
Diffstat (limited to 'libavformat/wtvenc.c')
-rw-r--r-- | libavformat/wtvenc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index 4a68b8133f..498bc64019 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -823,8 +823,6 @@ static int write_trailer(AVFormatContext *s) avio_seek(pb, 0x5c, SEEK_SET); avio_wl32(pb, file_end_pos >> WTV_SECTOR_BITS); - avio_flush(pb); - av_free(wctx->sp_pairs); av_free(wctx->st_pairs); av_packet_unref(&wctx->thumbnail); |