aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2024-07-22 21:06:01 +0300
committerRémi Denis-Courmont <remi@remlab.net>2024-07-29 21:16:41 +0300
commitc98127c00eab4d2d9414a0a8c5b27bf7e17f5866 (patch)
treee8a7af3ed0477afa6a8402681458afff56382e48 /libavcodec
parent56fc5fc6ce9b4d3b9505a652d2a29f4f0662e4e2 (diff)
downloadffmpeg-c98127c00eab4d2d9414a0a8c5b27bf7e17f5866.tar.gz
lavc/vp9dsp: use restrict qualifier for copy/avg MC
Same as previous commit.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp9dsp_template.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/vp9dsp_template.c b/libavcodec/vp9dsp_template.c
index 5c4fb5d6e2..da3cc28e5e 100644
--- a/libavcodec/vp9dsp_template.c
+++ b/libavcodec/vp9dsp_template.c
@@ -1936,9 +1936,9 @@ static av_cold void vp9dsp_loopfilter_init(VP9DSPContext *dsp)
#if BIT_DEPTH != 12
-static av_always_inline void copy_c(uint8_t *dst, ptrdiff_t dst_stride,
- const uint8_t *src, ptrdiff_t src_stride,
- int w, int h)
+static av_always_inline void copy_c(uint8_t *restrict dst, ptrdiff_t dst_stride,
+ const uint8_t *restrict src,
+ ptrdiff_t src_stride, int w, int h)
{
do {
memcpy(dst, src, w * sizeof(pixel));
@@ -1948,9 +1948,9 @@ static av_always_inline void copy_c(uint8_t *dst, ptrdiff_t dst_stride,
} while (--h);
}
-static av_always_inline void avg_c(uint8_t *_dst, ptrdiff_t dst_stride,
- const uint8_t *_src, ptrdiff_t src_stride,
- int w, int h)
+static av_always_inline void avg_c(uint8_t *restrict _dst, ptrdiff_t dst_stride,
+ const uint8_t *restrict _src,
+ ptrdiff_t src_stride, int w, int h)
{
pixel *dst = (pixel *) _dst;
const pixel *src = (const pixel *) _src;