Mercurial > libavformat.hg
changeset 2692:d320b2990d7e libavformat
support flv with invalid header
fixes issue43
author | michael |
---|---|
date | Wed, 31 Oct 2007 22:10:34 +0000 |
parents | 002ab6bbf9db |
children | 997fb1ac4783 |
files | flvdec.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flvdec.c Wed Oct 31 21:35:50 2007 +0000 +++ b/flvdec.c Wed Oct 31 22:10:34 2007 +0000 @@ -309,8 +309,7 @@ } if(i == s->nb_streams){ av_log(NULL, AV_LOG_ERROR, "invalid stream\n"); - url_fseek(&s->pb, next, SEEK_SET); - continue; + st= create_stream(s, is_audio); } // 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))