lavf/utils: show the number of stream in case of missing parameter
authorStefano Sabatini <stefasab@gmail.com>
Wed, 18 Jul 2012 15:05:07 +0000 (17:05 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Wed, 18 Jul 2012 16:08:57 +0000 (18:08 +0200)
Increase feedback provided in avformat_find_stream_info().

libavformat/utils.c

index 1fd7f75..dfdc51d 100644 (file)
@@ -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;
             }