diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-08-24 11:52:10 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-08-26 11:50:21 +0200 |
commit | 3fd22538bc0e0de84b31335266b4b1577d3d609e (patch) | |
tree | 97b7aed8f03aa6a1352934ca9407da515bfd574c /libavcodec/proresdsp.h | |
parent | f81be06cf614919d71ded29b8f595bef40123ad8 (diff) | |
download | ffmpeg-3fd22538bc0e0de84b31335266b4b1577d3d609e.tar.gz |
prores: Change type of stride parameters to ptrdiff_t
This avoids SIMD-optimized functions having to sign-extend their
line size argument manually to be able to do pointer arithmetic.
Also adjust parameter names to be "linesize" everywhere.
Diffstat (limited to 'libavcodec/proresdsp.h')
-rw-r--r-- | libavcodec/proresdsp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/proresdsp.h b/libavcodec/proresdsp.h index e8a3ea96a7..7f06494daf 100644 --- a/libavcodec/proresdsp.h +++ b/libavcodec/proresdsp.h @@ -23,6 +23,7 @@ #ifndef AVCODEC_PRORESDSP_H #define AVCODEC_PRORESDSP_H +#include <stddef.h> #include <stdint.h> #define PRORES_BITS_PER_SAMPLE 10 ///< output precision of prores decoder @@ -30,7 +31,7 @@ typedef struct ProresDSPContext { int idct_permutation_type; uint8_t idct_permutation[64]; - void (* idct_put) (uint16_t *out, int linesize, int16_t *block, const int16_t *qmat); + void (*idct_put)(uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat); } ProresDSPContext; void ff_proresdsp_init(ProresDSPContext *dsp); |