From 3b21f10639460c738ce5b6d6b0e6eec61198a6df Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 28 Nov 2022 11:34:04 +0100 Subject: [PATCH] fftools/ffmpeg: fix stream id in an error message. Broken in 7ef7a22251b8 --- fftools/ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 2dbfeca020..00e4be68ea 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3797,7 +3797,8 @@ static int transcode(void) packets_written = atomic_load(&ost->packets_written); total_packets_written += packets_written; if (!packets_written && (abort_on_flags & ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM)) { - av_log(NULL, AV_LOG_FATAL, "Empty output on stream %d.\n", i); + av_log(NULL, AV_LOG_FATAL, "Empty output on stream %d:%d.\n", + ost->file_index, ost->index); exit_program(1); } }