aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-04 21:33:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-12 11:26:51 +0200
commitdda009b97d3104b7bb7b43c1704ac10e2610185a (patch)
tree74e50b0e2c7e902136a483771be8b689822c9a9b /libavcodec/rv34.c
parentf1c4e8950ebe951cd2883ecd5e3b6416edcd9a81 (diff)
downloadffmpeg-dda009b97d3104b7bb7b43c1704ac10e2610185a.tar.gz
avcodec/mpegvideo: Add const where appropriate
Specifically, add const to the pointed-to-type of pointers that point to something static or that belong to last_pic or next_pic (because modifying these might lead to data races). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r--libavcodec/rv34.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 940d2deaa1..f88b5a6a40 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -681,7 +681,8 @@ static inline void rv34_mc(RV34DecContext *r, const int block_type,
h264_chroma_mc_func (*chroma_mc))
{
MpegEncContext *s = &r->s;
- uint8_t *Y, *U, *V, *srcY, *srcU, *srcV;
+ uint8_t *Y, *U, *V;
+ const uint8_t *srcY, *srcU, *srcV;
int dxy, mx, my, umx, umy, lx, ly, uvmx, uvmy, src_x, src_y, uvsrc_x, uvsrc_y;
int mv_pos = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride + mv_off;
int is16x16 = 1;