[FFmpeg-cvslog] r9399 - trunk/libavformat/matroskadec.c

aurel subversion
Sat Jun 23 14:49:37 CEST 2007


Author: aurel
Date: Sat Jun 23 14:49:36 2007
New Revision: 9399

Log:
simplify

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Sat Jun 23 14:49:36 2007
@@ -2271,10 +2271,8 @@ matroska_parse_block(MatroskaDemuxContex
     /* block_time (relative to cluster time) */
     block_time = AV_RB16(data);
     data += 2;
-    size -= 2;
-    flags = *data;
-    data += 1;
-    size -= 1;
+    flags = *data++;
+    size -= 3;
     if (is_keyframe == -1)
         is_keyframe = flags & 1 ? PKT_FLAG_KEY : 0;
 




More information about the ffmpeg-cvslog mailing list