avcodec/lagarith: fix src/src_size for esc_count < 8
untested due to lack of sample Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
100a54da52
commit
3410122c68
@ -460,6 +460,8 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst,
|
|||||||
length);
|
length);
|
||||||
} else if (esc_count < 8) {
|
} else if (esc_count < 8) {
|
||||||
esc_count -= 4;
|
esc_count -= 4;
|
||||||
|
src ++;
|
||||||
|
src_size --;
|
||||||
if (esc_count > 0) {
|
if (esc_count > 0) {
|
||||||
/* Zero run coding only, no range coding. */
|
/* Zero run coding only, no range coding. */
|
||||||
for (i = 0; i < height; i++) {
|
for (i = 0; i < height; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user