From 5784a46986be6f87e8041f67acd9ccaecb1f62df Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <stefasab@gmail.com>
Date: Wed, 18 Jul 2012 17:05:07 +0200
Subject: [PATCH] lavf/utils: show the number of stream in case of missing
 parameter

Increase feedback provided in avformat_find_stream_info().
---
 libavformat/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 1fd7f75f2ae..dfdc51de377 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2721,9 +2721,9 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
                 char buf[256];
                 avcodec_string(buf, sizeof(buf), st->codec, 0);
                 av_log(ic, AV_LOG_WARNING,
-                       "Could not find codec parameters for stream (%s): %s\n"
+                       "Could not find codec parameters for stream %d (%s): %s\n"
                        "Consider increasing the value for the 'analyzeduration' and 'probesize' options\n",
-                       buf, errmsg);
+                       i, buf, errmsg);
             } else {
                 ret = 0;
             }
-- 
GitLab