[FFmpeg-devel] [PATCH 03/33] fftools/ffmpeg_demux: drop a redundant avio_flush()

Anton Khirnov anton at khirnov.net
Thu Jul 13 13:55:23 EEST 2023


It is immediately followed by avio_close(), which is documented to flush
the buffers.
---
 fftools/ffmpeg_demux.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index a6df2a1904..40bbfa0c0e 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1286,7 +1286,6 @@ static void dump_attachment(InputStream *ist, const char *filename)
     }
 
     avio_write(out, st->codecpar->extradata, st->codecpar->extradata_size);
-    avio_flush(out);
     avio_close(out);
 }
 
-- 
2.40.1



More information about the ffmpeg-devel mailing list