changeset 3611:2a7f495e8c56 libavformat

skip flv video info / command frame packets, fix issue #546
author bcoudurier
date Thu, 31 Jul 2008 02:26:40 +0000
parents 71ce7d228291
children c6186d4ceda0
files flvdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Wed Jul 30 21:07:54 2008 +0000
+++ b/flvdec.c	Thu Jul 31 02:26:40 2008 +0000
@@ -324,6 +324,10 @@
     } 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);