aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/faanidct.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-03-21 14:29:52 -0300
committerJames Almer <jamrial@gmail.com>2017-03-21 14:29:52 -0300
commit5a49097b42cbc3eab888d15a91eeaf5520b5c381 (patch)
tree080300f20bca98deac895f2ca86a25b72a8428e8 /libavcodec/faanidct.c
parent2c8a3aa985acc906ecab37357f2798da7cb9822d (diff)
parent2ec9fa5ec60dcd10e1cb10d8b4e4437e634ea428 (diff)
downloadffmpeg-5a49097b42cbc3eab888d15a91eeaf5520b5c381.tar.gz
Merge commit '2ec9fa5ec60dcd10e1cb10d8b4e4437e634ea428'
* commit '2ec9fa5ec60dcd10e1cb10d8b4e4437e634ea428': idct: Change type of array stride parameters to ptrdiff_t Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/faanidct.c')
-rw-r--r--libavcodec/faanidct.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libavcodec/faanidct.c b/libavcodec/faanidct.c
index 2aab726850..3921f82dae 100644
--- a/libavcodec/faanidct.c
+++ b/libavcodec/faanidct.c
@@ -47,7 +47,9 @@ B6*B0/8, B6*B1/8, B6*B2/8, B6*B3/8, B6*B4/8, B6*B5/8, B6*B6/8, B6*B7/8,
B7*B0/8, B7*B1/8, B7*B2/8, B7*B3/8, B7*B4/8, B7*B5/8, B7*B6/8, B7*B7/8,
};
-static inline void p8idct(int16_t data[64], FLOAT temp[64], uint8_t *dest, int stride, int x, int y, int type){
+static inline void p8idct(int16_t data[64], FLOAT temp[64], uint8_t *dest,
+ ptrdiff_t stride, int x, int y, int type)
+{
int i;
FLOAT s04, d04, s17, d17, s26, d26, s53, d53;
FLOAT os07, os16, os25, os34;
@@ -135,7 +137,8 @@ void ff_faanidct(int16_t block[64]){
p8idct(block, temp, NULL, 0, 8, 1, 1);
}
-void ff_faanidct_add(uint8_t *dest, int line_size, int16_t block[64]){
+void ff_faanidct_add(uint8_t *dest, ptrdiff_t line_size, int16_t block[64])
+{
FLOAT temp[64];
int i;
@@ -148,7 +151,8 @@ void ff_faanidct_add(uint8_t *dest, int line_size, int16_t block[64]){
p8idct(NULL , temp, dest, line_size, 8, 1, 2);
}
-void ff_faanidct_put(uint8_t *dest, int line_size, int16_t block[64]){
+void ff_faanidct_put(uint8_t *dest, ptrdiff_t line_size, int16_t block[64])
+{
FLOAT temp[64];
int i;