Commit e0fcd029 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ac9d1590'

* commit 'ac9d1590':
  proresdec: Properly make sure an index doesn't run past the limit

Conflicts:
	libavcodec/proresdec_lgpl.c

See: 30df9789Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 18e0dd05 ac9d1590
...@@ -496,8 +496,9 @@ static void unpack_alpha(GetBitContext *gb, uint16_t *dst, int num_coeffs, ...@@ -496,8 +496,9 @@ static void unpack_alpha(GetBitContext *gb, uint16_t *dst, int num_coeffs,
dst[idx++] = alpha_val >> 6; dst[idx++] = alpha_val >> 6;
else else
dst[idx++] = (alpha_val << 2) | (alpha_val >> 6); dst[idx++] = (alpha_val << 2) | (alpha_val >> 6);
if (idx >= num_coeffs) if (idx >= num_coeffs) {
break; break;
}
} while (get_bits1(gb)); } while (get_bits1(gb));
val = get_bits(gb, 4); val = get_bits(gb, 4);
if (!val) if (!val)
......
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