diff mbox series

[FFmpeg-devel,3/8] fftools/ffmpeg: fix stream id in an error message.

Message ID 20230104164246.6133-3-anton@khirnov.net
State Accepted
Commit 3b21f10639460c738ce5b6d6b0e6eec61198a6df
Headers show
Series [FFmpeg-devel,1/8] doc/ffmpeg.texi: drop a non-existent option | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Jan. 4, 2023, 4:42 p.m. UTC
Broken in 7ef7a22251b8
---
 fftools/ffmpeg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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);
         }
     }