summaryrefslogtreecommitdiff
path: root/libavcodec/dv.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-23 06:15:23 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 04:38:20 +0200
commit597dc96736a960ed95f2cbbf0b32ddad210c7f2a (patch)
tree42d6f121dacf72f87d468a196e0b1c2631b1d82c /libavcodec/dv.h
parent5ad29e15908523c423c881bce2aaf62e433169b6 (diff)
downloadffmpeg-597dc96736a960ed95f2cbbf0b32ddad210c7f2a.tar.gz
avcodec/dvdec: Constify slice threads' ptr to main context
Modifying the main context from a slice thread is (usually) a data race, so it must not happen. So only use a pointer to const to access the main context. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dv.h')
-rw-r--r--libavcodec/dv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dv.h b/libavcodec/dv.h
index 855afcc758..331b8e846a 100644
--- a/libavcodec/dv.h
+++ b/libavcodec/dv.h
@@ -109,8 +109,8 @@ static inline int dv_work_pool_size(const AVDVProfile *d)
return size;
}
-static inline void dv_calculate_mb_xy(DVVideoContext *s,
- DVwork_chunk *work_chunk,
+static inline void dv_calculate_mb_xy(const DVVideoContext *s,
+ const DVwork_chunk *work_chunk,
int m, int *mb_x, int *mb_y)
{
*mb_x = work_chunk->mb_coordinates[m] & 0xff;