projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a82beaf
)
simple_idct: change 10-bit add/put stride from pixels to bytes
author
Mans Rullgard
<mans@mansr.com>
Thu, 21 Jul 2011 02:56:44 +0000
(
03:56
+0100)
committer
Mans Rullgard
<mans@mansr.com>
Thu, 21 Jul 2011 08:26:37 +0000
(09:26 +0100)
This matches other dsputil functions and simplifies calls.
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/simple_idct_template.c
patch
|
blob
|
history
diff --git
a/libavcodec/simple_idct_template.c
b/libavcodec/simple_idct_template.c
index be49cb95705dcadda15b9a5b4c8de042a2113588..1b6115d41f4f8745d925e53c8685e0ff2cd7e541 100644
(file)
--- 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);