ffmpeg: exit on av_write_trailer failure if exit_on_error is set

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
pull/155/head
Marton Balint 9 years ago
parent a1240c0522
commit f4730a5845
  1. 2
      ffmpeg.c

@ -4106,6 +4106,8 @@ static int transcode(void)
os = output_files[i]->ctx;
if ((ret = av_write_trailer(os)) < 0) {
av_log(NULL, AV_LOG_ERROR, "Error writing trailer of %s: %s", os->filename, av_err2str(ret));
if (exit_on_error)
exit_program(1);
}
}

Loading…
Cancel
Save