Commit 9a238ee8 authored by bcoudurier's avatar bcoudurier

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14480 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ad9d7c6f
...@@ -324,6 +324,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -324,6 +324,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
} else if (type == FLV_TAG_TYPE_VIDEO) { } else if (type == FLV_TAG_TYPE_VIDEO) {
is_audio=0; is_audio=0;
flags = get_byte(s->pb); flags = get_byte(s->pb);
if ((flags & 0xf0) == 0x50) { /* video info / command frame */
url_fskip(s->pb, size - 1);
continue;
}
} else { } else {
if (type == FLV_TAG_TYPE_META && size > 13+1+4) if (type == FLV_TAG_TYPE_META && size > 13+1+4)
flv_read_metabody(s, next); flv_read_metabody(s, next);
......
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