mirror of https://git.ffmpeg.org/ffmpeg.git
provide more info on which streams lack codec parameters
Originally committed as revision 5188 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
21c5aca65a
commit
305ee50fbb
|
@ -1931,9 +1931,13 @@ 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;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue