[FFmpeg-cvslog] fftools/ffmpeg: fix stream id in an error message.

Anton Khirnov git at videolan.org
Tue Jan 10 12:57:57 EET 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Nov 28 11:34:04 2022 +0100| [3b21f10639460c738ce5b6d6b0e6eec61198a6df] | committer: Anton Khirnov

fftools/ffmpeg: fix stream id in an error message.

Broken in 7ef7a22251b8

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b21f10639460c738ce5b6d6b0e6eec61198a6df
---

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



More information about the ffmpeg-cvslog mailing list