Mercurial > libavformat.hg
changeset 2188:4c2924cebe00 libavformat
simplify
author | aurel |
---|---|
date | Sat, 23 Jun 2007 12:49:36 +0000 |
parents | a6f9b5f8158a |
children | da71207a7cf1 |
files | matroskadec.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Sat Jun 23 12:47:02 2007 +0000 +++ b/matroskadec.c Sat Jun 23 12:49:36 2007 +0000 @@ -2271,10 +2271,8 @@ /* 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;