diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-10-31 22:10:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-10-31 22:10:34 +0000 |
commit | c8652b5714d80b35e67491ebe2265146df76eaac (patch) | |
tree | 57f93c99dbff28218d6805f7a0ebde7368dd184b /libavformat/flvdec.c | |
parent | 6f910bcf395c072f943d55535071989b0c53f332 (diff) | |
download | ffmpeg-c8652b5714d80b35e67491ebe2265146df76eaac.tar.gz |
support flv with invalid header
fixes issue43
Originally committed as revision 10887 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 1de656ba7d..e9578c2e49 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -309,8 +309,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) } 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)) |