From 5fe3914c391699c05cbd7a09f38f318d0452f1df Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 12 Jul 2023 19:48:05 +0200 Subject: [PATCH] fftools/ffmpeg: return an error instead of aborting --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) {