aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-26 08:00:28 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 03:32:40 +0200
commit966fc1230a68d4107994038b71c3200b069ed22e (patch)
tree484ea487725a301bf8dffde77bfc57107943a234 /libavcodec/ppc
parentabb85429f3424375f21bdd135656c2d88357b3d5 (diff)
downloadffmpeg-966fc1230a68d4107994038b71c3200b069ed22e.tar.gz
avcodec/mpegvideoencdsp: Allow pointers to const where possible
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/mpegvideoencdsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ppc/mpegvideoencdsp.c b/libavcodec/ppc/mpegvideoencdsp.c
index b96487bf81..07d3e76ee0 100644
--- a/libavcodec/ppc/mpegvideoencdsp.c
+++ b/libavcodec/ppc/mpegvideoencdsp.c
@@ -30,7 +30,7 @@
#if HAVE_ALTIVEC
#if HAVE_VSX
-static int pix_norm1_altivec(uint8_t *pix, int line_size)
+static int pix_norm1_altivec(const uint8_t *pix, int line_size)
{
int i, s = 0;
const vector unsigned int zero =
@@ -57,7 +57,7 @@ static int pix_norm1_altivec(uint8_t *pix, int line_size)
return s;
}
#else
-static int pix_norm1_altivec(uint8_t *pix, int line_size)
+static int pix_norm1_altivec(const uint8_t *pix, int line_size)
{
int i, s = 0;
const vector unsigned int zero =
@@ -87,7 +87,7 @@ static int pix_norm1_altivec(uint8_t *pix, int line_size)
#endif /* HAVE_VSX */
#if HAVE_VSX
-static int pix_sum_altivec(uint8_t *pix, int line_size)
+static int pix_sum_altivec(const uint8_t *pix, int line_size)
{
int i, s;
const vector unsigned int zero =
@@ -115,7 +115,7 @@ static int pix_sum_altivec(uint8_t *pix, int line_size)
return s;
}
#else
-static int pix_sum_altivec(uint8_t *pix, int line_size)
+static int pix_sum_altivec(const uint8_t *pix, int line_size)
{
int i, s;
const vector unsigned int zero =