Commit c8652b57 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

support flv with invalid header

fixes issue43

Originally committed as revision 10887 to svn://
parent 6f910bcf
......@@ -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);
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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment