diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-22 21:35:33 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-23 11:52:03 +0100 |
commit | 416d4be6262de8391bdc6a864a42488bf6b84efb (patch) | |
tree | 2b2e8eb78704b238e148c06f0683c34020dd1702 | |
parent | f57e522ce2098e633024204c6f0cfad0185e1a2c (diff) | |
download | ffmpeg-416d4be6262de8391bdc6a864a42488bf6b84efb.tar.gz |
avcodec/magicyuvenc: Add const where appropriate
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/magicyuvenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c index 4440ab3ce2..ffb0be1d14 100644 --- a/libavcodec/magicyuvenc.c +++ b/libavcodec/magicyuvenc.c @@ -69,12 +69,12 @@ typedef struct MagicYUVContext { unsigned tables_size; HuffEntry he[4][256]; LLVidEncDSPContext llvidencdsp; - void (*predict)(struct MagicYUVContext *s, uint8_t *src, uint8_t *dst, + void (*predict)(struct MagicYUVContext *s, const uint8_t *src, uint8_t *dst, ptrdiff_t stride, int width, int height); } MagicYUVContext; static void left_predict(MagicYUVContext *s, - uint8_t *src, uint8_t *dst, ptrdiff_t stride, + const uint8_t *src, uint8_t *dst, ptrdiff_t stride, int width, int height) { uint8_t prev = 0; @@ -98,7 +98,7 @@ static void left_predict(MagicYUVContext *s, } static void gradient_predict(MagicYUVContext *s, - uint8_t *src, uint8_t *dst, ptrdiff_t stride, + const uint8_t *src, uint8_t *dst, ptrdiff_t stride, int width, int height) { int left = 0, top, lefttop; @@ -126,7 +126,7 @@ static void gradient_predict(MagicYUVContext *s, } static void median_predict(MagicYUVContext *s, - uint8_t *src, uint8_t *dst, ptrdiff_t stride, + const uint8_t *src, uint8_t *dst, ptrdiff_t stride, int width, int height) { int left = 0, lefttop; |