[FFmpeg-cvslog] fftools/ffmpeg_demux: drop a redundant avio_flush()

Anton Khirnov git at videolan.org
Sat Jul 15 12:02:33 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 12 12:56:28 2023 +0200| [ff0160cb372fb46dee5a593d5fe3fdff0fb92414] | committer: Anton Khirnov

fftools/ffmpeg_demux: drop a redundant avio_flush()

It is immediately followed by avio_close(), which is documented to flush
the buffers.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff0160cb372fb46dee5a593d5fe3fdff0fb92414
---

 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);
 }
 



More information about the ffmpeg-cvslog mailing list