[FFmpeg-devel] [PATCH 1/5] ffmpeg: log failed av_write_trailer
Michael Niedermayer
michael at niedermayer.cc
Sun Oct 18 00:36:58 CEST 2015
On Sun, Oct 18, 2015 at 12:24:03AM +0200, Marton Balint wrote:
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
> ffmpeg.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 36a68fb..95f7e2f 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: %s", av_err2str(ret));
this should print something to identify from where the failure
came, demuxer name or filename or something otherwise with multiple
outputs the user would not know
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
DNS cache poisoning attacks, popular search engine, Google internet authority
dont be evil, please
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151018/3e9c5364/attachment.sig>
More information about the ffmpeg-devel
mailing list