Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-01-04 23:14:46 +0300
committerMarton Balint <cus@passwd.hu>2020-01-07 23:51:45 +0300
commitf4a8ea7ff6fd83ec925cfd3fccde538196cff85a (patch)
tree2be7fb737be6340750e5dfee26e07985c6ae56fe /libavformat/asfenc.c
parentc371463915aef11fb8d052fd25313d0444a42cfd (diff)
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/asfenc.c')
-rw-r--r--libavformat/asfenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index d03cff91c0..8eaa9d40ce 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -1130,7 +1130,6 @@ static int asf_write_trailer(AVFormatContext *s)
return ret;
asf_write_index(s, asf->index_ptr, asf->maximum_packet, asf->next_start_sec);
}
- avio_flush(s->pb);
if (asf->is_streamed || !(s->pb->seekable & AVIO_SEEKABLE_NORMAL)) {
put_chunk(s, 0x4524, 0, 0); /* end of stream */