[FFmpeg-cvslog] simple_idct: change 10-bit add/put stride from pixels to bytes

Mans Rullgard git at videolan.org
Thu Jul 21 16:54:43 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Jul 21 03:56:44 2011 +0100| [e7bcc5baf721d6a80fcb79674aad4171e5ca94e7] | committer: Mans Rullgard

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 at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e7bcc5baf721d6a80fcb79674aad4171e5ca94e7
---

 libavcodec/simple_idct_template.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libavcodec/simple_idct_template.c b/libavcodec/simple_idct_template.c
index be49cb9..1b6115d 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);
 



More information about the ffmpeg-cvslog mailing list