Commit e80aa47a authored by Michael Niedermayer's avatar Michael Niedermayer

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

untested due to lack of sample
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3410122c
...@@ -443,7 +443,7 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst, ...@@ -443,7 +443,7 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst,
offset += 4; 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) if (lag_read_prob_header(&rac, &gb) < 0)
return -1; return -1;
......
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