Mercurial > libavformat.hg
changeset 1998:a5addcafd161 libavformat
simplify
author | michael |
---|---|
date | Sat, 07 Apr 2007 23:26:11 +0000 |
parents | fde951d80d2b |
children | c97517791e6c |
files | bethsoftvid.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bethsoftvid.c Sat Apr 07 23:24:31 2007 +0000 +++ b/bethsoftvid.c Sat Apr 07 23:26:11 2007 +0000 @@ -136,13 +136,12 @@ if(rle_num_bytes >= 0x80){ // rle sequence if(block_type == VIDEO_I_FRAME) vidbuf_start[vidbuf_nbytes++] = get_byte(pb); - bytes_copied += rle_num_bytes - 0x80; } else if(rle_num_bytes){ // plain sequence if(get_buffer(pb, &vidbuf_start[vidbuf_nbytes], rle_num_bytes) != rle_num_bytes) goto fail; vidbuf_nbytes += rle_num_bytes; - bytes_copied += rle_num_bytes; } + bytes_copied += rle_num_bytes & 0x7F; if(bytes_copied == npixels){ // sometimes no stop character is given, need to keep track of bytes copied // may contain a 0 byte even if read all pixels if(get_byte(pb))