Mercurial > libavformat.hg
changeset 3215:4efe0debe0cf libavformat
Stop find_stream_info() searching for further streams if 2 streams have
been found.
author | michael |
---|---|
date | Sun, 13 Apr 2008 23:47:03 +0000 |
parents | e24c36cb72a5 |
children | 0ece8d5c42d8 |
files | flvdec.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flvdec.c Sun Apr 13 22:58:04 2008 +0000 +++ b/flvdec.c Sun Apr 13 23:47:03 2008 +0000 @@ -324,6 +324,7 @@ 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))