[FFmpeg-cvslog] lavf/utils: show the number of stream in case of missing parameter

Stefano Sabatini git at videolan.org
Wed Jul 18 18:15:03 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Jul 18 17:05:07 2012 +0200| [5784a46986be6f87e8041f67acd9ccaecb1f62df] | committer: Stefano Sabatini

lavf/utils: show the number of stream in case of missing parameter

Increase feedback provided in avformat_find_stream_info().

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

 libavformat/utils.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 1fd7f75..dfdc51d 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;
             }



More information about the ffmpeg-cvslog mailing list