Browse Source

avcodec/lagarith: fix init_get_bits() size in lag_decode_arith_plane()

untested due to lack of sample

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
e80aa47abf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/lagarith.c

+ 1
- 1
libavcodec/lagarith.c View File

@@ -443,7 +443,7 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst,
offset += 4;
}

init_get_bits(&gb, src + offset, src_size * 8);
init_get_bits(&gb, src + offset, (src_size - offset) * 8);

if (lag_read_prob_header(&rac, &gb) < 0)
return -1;


Loading…
Cancel
Save