diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-04-13 23:47:03 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-04-13 23:47:03 +0000 |
commit | a33cfa3071eb2a1a501223469c33252054a798ed (patch) | |
tree | 6fc29f1c9f75e89bb3ebfc3670dd5a11656faff5 /libavformat | |
parent | 749c9201aa4499c38fd009fce5c386d9215231f9 (diff) | |
download | ffmpeg-a33cfa3071eb2a1a501223469c33252054a798ed.tar.gz |
Stop find_stream_info() searching for further streams if 2 streams have
been found.
Originally committed as revision 12810 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 34bc78d122..1dd79f3478 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -324,6 +324,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) if(i == s->nb_streams){ av_log(NULL, AV_LOG_ERROR, "invalid stream\n"); st= create_stream(s, is_audio); + s->ctx_flags &= ~AVFMTCTX_NOHEADER; } // av_log(NULL, AV_LOG_DEBUG, "%d %X %d \n", is_audio, flags, st->discard); if( (st->discard >= AVDISCARD_NONKEY && !((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY || is_audio)) |