diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-22 02:30:45 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-22 02:30:45 +0000 |
commit | e19456e3ee263ae1c46b623c8394394710721ff4 (patch) | |
tree | c58058971ae303a4ff604d430b81bad5156d783e /libavformat | |
parent | b4aea108ebe32a190e7f8ec6bddc1214a46c4456 (diff) | |
download | ffmpeg-e19456e3ee263ae1c46b623c8394394710721ff4.tar.gz |
fixing demuxing for short files where the framerate detection failed
Originally committed as revision 3859 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 44f5e76c11..a2d14fbb4b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1783,6 +1783,11 @@ int av_find_stream_info(AVFormatContext *ic) if (ret < 0) { /* EOF or error */ 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)) + break; + } if ((ic->ctx_flags & AVFMTCTX_NOHEADER) && i == ic->nb_streams) ret = 0; |