git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6f910bc
)
support flv with invalid header
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 31 Oct 2007 22:10:34 +0000
(22:10 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 31 Oct 2007 22:10:34 +0000
(22:10 +0000)
fixes issue43
Originally committed as revision 10887 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flvdec.c
b/libavformat/flvdec.c
index
1de656b
..
e9578c2
100644
(file)
--- 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))