提交 22e7d9cc 编写于 作者: B Baptiste Coudurier

skip flv video info / command frame packets, fix issue #546

Originally committed as revision 14480 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 f39e8b03
......@@ -324,6 +324,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
} else if (type == FLV_TAG_TYPE_VIDEO) {
is_audio=0;
flags = get_byte(s->pb);
if ((flags & 0xf0) == 0x50) { /* video info / command frame */
url_fskip(s->pb, size - 1);
continue;
}
} else {
if (type == FLV_TAG_TYPE_META && size > 13+1+4)
flv_read_metabody(s, next);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册