Mercurial > libavformat.hg
changeset 1139:ff241582890f libavformat
do not fail av_find_stream_info() if params for all streams could not be found
author | mru |
---|---|
date | Thu, 29 Jun 2006 19:02:15 +0000 |
parents | 36ce24677f96 |
children | 2cfb5e02b299 |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Wed Jun 28 21:40:08 2006 +0000 +++ b/utils.c Thu Jun 29 19:02:15 2006 +0000 @@ -1939,11 +1939,10 @@ 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; + } else { + ret = 0; } } - if (i == ic->nb_streams) - ret = 0; break; }