Commit 3410122c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/lagarith: fix src/src_size for esc_count < 8

untested due to lack of sample
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 100a54da
......@@ -460,6 +460,8 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst,
length);
} else if (esc_count < 8) {
esc_count -= 4;
src ++;
src_size --;
if (esc_count > 0) {
/* Zero run coding only, no range coding. */
for (i = 0; i < height; i++) {
......
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