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

bcoudurier subversion
Sat Aug 30 00:07:01 CEST 2008


Author: bcoudurier
Date: Sat Aug 30 00:07:01 2008
New Revision: 15041

Log:
factorize packet skip code

Modified:
   trunk/libavformat/flvdec.c

Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Sat Aug 30 00:07:01 2008
@@ -327,15 +327,14 @@ static int flv_read_packet(AVFormatConte
         is_audio=0;
         flags = get_byte(s->pb);
         size--;
-        if ((flags & 0xf0) == 0x50) { /* video info / command frame */
-            url_fskip(s->pb, size);
-            continue;
-        }
+        if ((flags & 0xf0) == 0x50) /* video info / command frame */
+            goto skip;
     } else {
         if (type == FLV_TAG_TYPE_META && size > 13+1+4)
             flv_read_metabody(s, next);
         else /* skip packet */
             av_log(s, AV_LOG_ERROR, "skipping flv packet: type %d, size %d, flags %d\n", type, size, flags);
+    skip:
         url_fseek(s->pb, next, SEEK_SET);
         continue;
     }




More information about the ffmpeg-cvslog mailing list