[FFmpeg-cvslog] r14480 - trunk/libavformat/flvdec.c

bcoudurier subversion
Thu Jul 31 04:26:41 CEST 2008


Author: bcoudurier
Date: Thu Jul 31 04:26:40 2008
New Revision: 14480

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

Modified:
   trunk/libavformat/flvdec.c

Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Thu Jul 31 04:26:40 2008
@@ -324,6 +324,10 @@ static int flv_read_packet(AVFormatConte
     } 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);




More information about the ffmpeg-cvslog mailing list