1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-08 08:55:34 +02:00

ffmpeg: log failed av_write_trailer

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2015-10-15 00:06:12 +02:00
parent ab5f43e634
commit a1240c0522

View File

@ -4104,7 +4104,9 @@ static int transcode(void)
/* write the trailer if needed and close file */
for (i = 0; i < nb_output_files; i++) {
os = output_files[i]->ctx;
av_write_trailer(os);
if ((ret = av_write_trailer(os)) < 0) {
av_log(NULL, AV_LOG_ERROR, "Error writing trailer of %s: %s", os->filename, av_err2str(ret));
}
}
/* dump report by using the first video and audio streams */