aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-06-23 12:49:36 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-06-23 12:49:36 +0000
commit1607c534bfed79366bdd8a3b3940acfd4c0f71e5 (patch)
tree3140486cf076a9e74b143f6215fc860142b2d911 /libavformat/matroskadec.c
parentfd2e1d88a6083a3cdce13e03701b95b800b7d239 (diff)
downloadffmpeg-1607c534bfed79366bdd8a3b3940acfd4c0f71e5.tar.gz
simplify
Originally committed as revision 9399 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2a9c187bd1..87e1dc013a 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2271,10 +2271,8 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
/* 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;