if (received_sigterm) {
av_log(NULL, AV_LOG_INFO, "Received signal %d: terminating.\n",
(int) received_sigterm);
+ } else if (ret && transcode_init_done) {
+ av_log(NULL, AV_LOG_INFO, "Conversion failed!\n");
}
term_exit();
}
{
char sdp[16384];
int i;
- AVFormatContext **avc = av_malloc(sizeof(*avc) * nb_output_files);
+ AVFormatContext **avc = av_malloc_array(nb_output_files, sizeof(*avc));
if (!avc)
exit_program(1);
if (*p == ',')
n++;
size = n;
- pts = av_malloc(sizeof(*pts) * size);
+ pts = av_malloc_array(size, sizeof(*pts));
if (!pts) {
av_log(NULL, AV_LOG_FATAL, "Could not allocate forced key frames array.\n");
exit_program(1);