diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 96638242f3..68924d21e0 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1094,7 +1094,7 @@ static int process_input(int file_index) av_log(ifile, AV_LOG_ERROR, "Error retrieving a packet from demuxer: %s\n", av_err2str(ret)); if (exit_on_error) - exit_program(1); + return ret; } for (i = 0; i < ifile->nb_streams; i++) {