summaryrefslogtreecommitdiff
path: root/libavformat/avienc.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-01-04 21:14:46 +0100
committerMarton Balint <cus@passwd.hu>2020-01-07 21:51:45 +0100
commitf4a8ea7ff6fd83ec925cfd3fccde538196cff85a (patch)
tree2be7fb737be6340750e5dfee26e07985c6ae56fe /libavformat/avienc.c
parentc371463915aef11fb8d052fd25313d0444a42cfd (diff)
downloadffmpeg-f4a8ea7ff6fd83ec925cfd3fccde538196cff85a.tar.gz
avformat: remove more unneeded avio_flush() calls
These instances are simply redundant or present because avio_flush() used to be required before doing a seekback. That is no longer the case, aviobuf code does the flush automatically on seek. This only affects code which is either disabled for streaming IO contexts or does no seekbacks after the flush, so this change should have no adverse effect on streaming. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r--libavformat/avienc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 23cc58ea76..d6cfb1b783 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -591,7 +591,6 @@ static void update_odml_entry(AVFormatContext *s, int stream_index, int64_t ix,
int64_t pos;
int au_byterate, au_ssize, au_scale;
- avio_flush(pb);
pos = avio_tell(pb);
/* Updating one entry in the AVI OpenDML master index */