aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-07-21 03:56:44 +0100
committerMans Rullgard <mans@mansr.com>2011-07-21 09:26:37 +0100
commite7bcc5baf721d6a80fcb79674aad4171e5ca94e7 (patch)
tree01dfd052bc978ae379b7162ab762e71d2de44f6f
parenta82beafd64529cba8c20bd24f63d6af7dccffb7d (diff)
downloadffmpeg-e7bcc5baf721d6a80fcb79674aad4171e5ca94e7.tar.gz
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 <mans@mansr.com>
-rw-r--r--libavcodec/simple_idct_template.c6
1 files changed, 6 insertions, 0 deletions
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);