[FFmpeg-devel] [PATCH 05/33] fftools/ffmpeg_demux: add logging for -dump_attachment
Anton Khirnov
anton at khirnov.net
Thu Jul 13 13:55:25 EEST 2023
Makes it more clear what was written where.
---
fftools/ffmpeg_demux.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 498830098d..ab99daf9f8 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1288,6 +1288,10 @@ static int dump_attachment(InputStream *ist, const char *filename)
avio_write(out, st->codecpar->extradata, st->codecpar->extradata_size);
ret = avio_close(out);
+ if (ret >= 0)
+ av_log(ist, AV_LOG_INFO, "Wrote attachment (%d bytes) to '%s'\n",
+ st->codecpar->extradata_size, filename);
+
return ret;
}
--
2.40.1
More information about the ffmpeg-devel
mailing list