On Tue, Mar 28, 2017 at 12:58:06PM +0300, Martin Storsjö wrote:
> --- a/libavcodec/hevcdec.c
> +++ b/libavcodec/hevcdec.c
> @@ -917,8 +917,8 @@ static void hls_residual_coding(HEVCContext *s, int x0,
> int y0,
> - DECLARE_ALIGNED(32, int16_t, coeffs[MAX_TB_SIZE * MAX_TB_SIZE]) = { 0 };
> - DECLARE_ALIGNED(8, uint8_t, significant_coeff_group_flag[8][8]) = { { 0
> } };
> + LOCAL_ALIGNED_32(int16_t, coeffs, [MAX_TB_SIZE * MAX_TB_SIZE]);
> + LOCAL_ALIGNED_8(uint8_t, significant_coeff_group_flag, [8], [8]);
> @@ -926,6 +926,8 @@ static void hls_residual_coding(HEVCContext *s, int x0,
> int y0,
> + memset(coeffs, 0, sizeof(int16_t) * MAX_TB_SIZE * MAX_TB_SIZE);
> + memset(significant_coeff_group_flag, 0, sizeof(uint8_t) * 8 * 8);
LOCAL_ALIGNED does not allow zero initialization? Maybe we should fix
that at some point.
OK
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel