Mercurial > libavformat.hg
changeset 1018:bddcb32bde33 libavformat
provide more info on which streams lack codec parameters
author | michael |
---|---|
date | Tue, 21 Mar 2006 11:29:50 +0000 |
parents | 47dc020f5215 |
children | a9d8381ff40d |
files | utils.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Fri Mar 17 23:21:18 2006 +0000 +++ b/utils.c Tue Mar 21 11:29:50 2006 +0000 @@ -1931,8 +1931,12 @@ 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;