From: Baptiste Coudurier Date: Thu, 31 Jul 2008 02:26:40 +0000 (+0000) Subject: skip flv video info / command frame packets, fix issue #546 X-Git-Tag: v0.5~3417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22e7d9cc256a885657118291c8c8c16b47934c9c;p=platform%2Fupstream%2Flibav.git skip flv video info / command frame packets, fix issue #546 Originally committed as revision 14480 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index ad14d3b..d2e92b0 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -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);