diff options
author | Marton Balint <cus@passwd.hu> | 2020-01-04 21:14:46 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-01-07 21:51:45 +0100 |
commit | f4a8ea7ff6fd83ec925cfd3fccde538196cff85a (patch) | |
tree | 2be7fb737be6340750e5dfee26e07985c6ae56fe /libavformat/segafilmenc.c | |
parent | c371463915aef11fb8d052fd25313d0444a42cfd (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/segafilmenc.c')
-rw-r--r-- | libavformat/segafilmenc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c index f1048ff808..812d0ad64e 100644 --- a/libavformat/segafilmenc.c +++ b/libavformat/segafilmenc.c @@ -362,8 +362,6 @@ static int film_write_header(AVFormatContext *format_context) avio_wb32(pb, film->packet_count); - avio_flush(pb); - /* Finally, write out each packet's data to the header */ packet = film->start; while (packet != NULL) { |