On 2021-10-19 04:54 am, Soft Works wrote:
Introduce a way for decoders to request application exit via error return
Why? The ffmpeg app may be processing multiple inputs and outputs. At most, you can close the codec and end the stream.
Signed-off-by: softworkz <softwo...@hotmail.com> --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9d4f9d7a2b..dbbe670a0a 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2727,7 +2727,7 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eo av_log(NULL, AV_LOG_FATAL, "Error while processing the decoded " "data for stream #%d:%d\n", ist->file_index, ist->st->index); } - if (!decode_failed || exit_on_error) + if (!decode_failed || exit_on_error || ret == AVERROR_EXIT) exit_program(1); break; }
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".