aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-06-29 19:02:15 +0000
committerMåns Rullgård <mans@mansr.com>2006-06-29 19:02:15 +0000
commit344a18c3b8b783756b209e515e004bb21b03c7a4 (patch)
tree5b478d08b38db204ebf109dcc96cd4d2df710a9d /libavformat
parentc6bb50e0024005e78fd54fce14773fefb9489821 (diff)
downloadffmpeg-344a18c3b8b783756b209e515e004bb21b03c7a4.tar.gz
do not fail av_find_stream_info() if params for all streams could not be found
Originally committed as revision 5545 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 51489a3a48..74ec667d91 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1939,11 +1939,10 @@ int av_find_stream_info(AVFormatContext *ic)
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;
}