projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd2e1d8
)
simplify
author
Aurelien Jacobs
<aurel@gnuage.org>
Sat, 23 Jun 2007 12:49:36 +0000
(12:49 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sat, 23 Jun 2007 12:49:36 +0000
(12:49 +0000)
Originally committed as revision 9399 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskadec.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskadec.c
b/libavformat/matroskadec.c
index 2a9c187bd12e06ef030c17589b2cbe3e7ea35c80..87e1dc013a9321e918bc8fd7d56b3f1fd3ef3fab 100644
(file)
--- 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;