mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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);
|
||||
} 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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user