From e7bcc5baf721d6a80fcb79674aad4171e5ca94e7 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Thu, 21 Jul 2011 03:56:44 +0100 Subject: simple_idct: change 10-bit add/put stride from pixels to bytes This matches other dsputil functions and simplifies calls. Signed-off-by: Mans Rullgard --- libavcodec/simple_idct_template.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavcodec/simple_idct_template.c') diff --git a/libavcodec/simple_idct_template.c b/libavcodec/simple_idct_template.c index be49cb9570..1b6115d41f 100644 --- a/libavcodec/simple_idct_template.c +++ b/libavcodec/simple_idct_template.c @@ -372,6 +372,9 @@ void FUNC(ff_simple_idct_put)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int i; + + line_size /= sizeof(pixel); + for(i=0; i<8; i++) FUNC(idctRowCondDC)(block + i*8); @@ -383,6 +386,9 @@ void FUNC(ff_simple_idct_add)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int i; + + line_size /= sizeof(pixel); + for(i=0; i<8; i++) FUNC(idctRowCondDC)(block + i*8); -- cgit v1.2.3