aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-07-31 02:26:40 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-07-31 02:26:40 +0000
commit22e7d9cc256a885657118291c8c8c16b47934c9c (patch)
tree5b1fa551d5557b1f01479c5427aedd81a2b537e4
parentf39e8b03c8a7f8387804097279160b0ac2c3d017 (diff)
downloadffmpeg-22e7d9cc256a885657118291c8c8c16b47934c9c.tar.gz
skip flv video info / command frame packets, fix issue #546
Originally committed as revision 14480 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/flvdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index ad14d3b3c9..d2e92b02b3 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);