aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_demux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-07-12 13:00:16 +0200
committerAnton Khirnov <anton@khirnov.net>2023-07-15 11:02:11 +0200
commit2d59873fc1b3ebdeaf4bae1e0db1e37bd3d0902f (patch)
treed5be3ed6ba6a706b46de84a2df2098fa0a127c88 /fftools/ffmpeg_demux.c
parent63e4e8e4f498e4be17d1c9d7bc3eed446693c24e (diff)
downloadffmpeg-2d59873fc1b3ebdeaf4bae1e0db1e37bd3d0902f.tar.gz
fftools/ffmpeg_demux: add logging for -dump_attachment
Makes it more clear what was written where.
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r--fftools/ffmpeg_demux.c4
1 files changed, 4 insertions, 0 deletions
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;
}