[FFmpeg-cvslog] ffmpeg: log failed av_write_trailer
Marton Balint
git at videolan.org
Thu Oct 22 05:24:08 CEST 2015
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Thu Oct 15 00:06:12 2015 +0200| [a1240c0522d10b937ef5fb88c2134452ae352fb5] | committer: Marton Balint
ffmpeg: log failed av_write_trailer
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1240c0522d10b937ef5fb88c2134452ae352fb5
---
ffmpeg.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 36a68fb..252bc0d 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 */
More information about the ffmpeg-cvslog
mailing list