summaryrefslogtreecommitdiff
path: root/libavformat/wavenc.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-01-04 19:31:14 +0100
committerMarton Balint <cus@passwd.hu>2020-01-07 21:51:45 +0100
commitc05d82fa92b38ac0459a0605872991d8fa9e2252 (patch)
tree763deec24366bffee5ca48c32694b35c82f7b868 /libavformat/wavenc.c
parent4bf90e095b361cb11371921bf6eb357831d857b2 (diff)
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/wavenc.c')
-rw-r--r--libavformat/wavenc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index c44d6d26e9..ea7573139c 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -478,7 +478,6 @@ static int wav_write_trailer(AVFormatContext *s)
avio_wl32(pb, -1);
avio_seek(pb, file_size, SEEK_SET);
- avio_flush(pb);
}
}
@@ -605,7 +604,6 @@ static int w64_write_trailer(AVFormatContext *s)
}
avio_seek(pb, file_size, SEEK_SET);
- avio_flush(pb);
}
return 0;