fftools/ffmpeg_demux: add logging for -dump_attachment

Makes it more clear what was written where.
This commit is contained in:
Anton Khirnov 2023-07-12 13:00:16 +02:00
parent 63e4e8e4f4
commit 2d59873fc1

View File

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