Commit 1607c534 authored by Aurelien Jacobs's avatar Aurelien Jacobs

simplify

Originally committed as revision 9399 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fd2e1d88
...@@ -2271,10 +2271,8 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, ...@@ -2271,10 +2271,8 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
/* block_time (relative to cluster time) */ /* block_time (relative to cluster time) */
block_time = AV_RB16(data); block_time = AV_RB16(data);
data += 2; data += 2;
size -= 2; flags = *data++;
flags = *data; size -= 3;
data += 1;
size -= 1;
if (is_keyframe == -1) if (is_keyframe == -1)
is_keyframe = flags & 1 ? PKT_FLAG_KEY : 0; is_keyframe = flags & 1 ? PKT_FLAG_KEY : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment