diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-21 11:29:50 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-21 11:29:50 +0000 |
commit | 305ee50fbbea2412e80ad30ba4f7d79dd24806fe (patch) | |
tree | a37fd75a978b55b1536ac470c046423ab212e1d9 /libavformat | |
parent | 21c5aca65a1785dcad05e1946763786714d6656b (diff) | |
download | ffmpeg-305ee50fbbea2412e80ad30ba4f7d79dd24806fe.tar.gz |
provide more info on which streams lack codec parameters
Originally committed as revision 5188 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 15a4a5e09b..560aace259 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1931,8 +1931,12 @@ int av_find_stream_info(AVFormatContext *ic) ret = -1; /* we could not have all the codec parameters before EOF */ for(i=0;i<ic->nb_streams;i++) { st = ic->streams[i]; - if (!has_codec_parameters(st->codec)) + if (!has_codec_parameters(st->codec)){ + char buf[256]; + avcodec_string(buf, sizeof(buf), st->codec, 0); + av_log(ic, AV_LOG_INFO, "Could not find codec parameters (%s)\n", buf); break; + } } if (i == ic->nb_streams) ret = 0; |