[FFmpeg-devel] [PATCH 3/3] avcodec/tak: clarify the size of residues buffer

Paul B Mahol onemda at gmail.com
Sat Feb 21 13:32:12 CET 2015


On 2/21/15, James Almer <jamrial at gmail.com> wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> At least this is what i interpreted 544 meant. This patch can be discarded
> otherwise.
>
>  libavcodec/takdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
> index 77170b5..059fdaa 100644
> --- a/libavcodec/takdec.c
> +++ b/libavcodec/takdec.c
> @@ -69,7 +69,7 @@ typedef struct TAKDecContext {
>
>      int8_t          coding_mode[128];
>      DECLARE_ALIGNED(16, int16_t, filter)[MAX_PREDICTORS];
> -    DECLARE_ALIGNED(16, int16_t, residues)[544];
> +    DECLARE_ALIGNED(16, int16_t, residues)[MAX_PREDICTORS * 2 +
> FF_INPUT_BUFFER_PADDING_SIZE];
>  } TAKDecContext;
>
>  static const int8_t mc_dmodes[] = { 1, 3, 4, 6, };
> --
> 2.3.0

AFAIK If FF_INPUT_BUFFER_PADDING_SIZE changes decoder will no longer work.


More information about the ffmpeg-devel mailing list