summaryrefslogtreecommitdiff
path: root/libavformat/vc1testenc.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/vc1testenc.c
parent4bf90e095b361cb11371921bf6eb357831d857b2 (diff)
downloadffmpeg-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/vc1testenc.c')
-rw-r--r--libavformat/vc1testenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/vc1testenc.c b/libavformat/vc1testenc.c
index cf95d1d80d..1365bdd660 100644
--- a/libavformat/vc1testenc.c
+++ b/libavformat/vc1testenc.c
@@ -76,7 +76,6 @@ static int vc1test_write_trailer(AVFormatContext *s)
if (s->pb->seekable & AVIO_SEEKABLE_NORMAL) {
avio_seek(pb, 0, SEEK_SET);
avio_wl24(pb, ctx->frames);
- avio_flush(pb);
}
return 0;
}