Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2015-10-15 01:06:12 +0300
committerMarton Balint <cus@passwd.hu>2015-10-22 06:07:45 +0300
commita1240c0522d10b937ef5fb88c2134452ae352fb5 (patch)
tree66d0d3de723463abb2434c25d8f5d3c5f04c0350
parentab5f43e6342c4c07faf5c9ae87628d7d7c83abb6 (diff)
ffmpeg: log failed av_write_trailer
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 36a68fbd4c..252bc0df58 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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 */