summaryrefslogtreecommitdiff
path: root/libavcodec/vp9dec.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-23 03:34:17 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 04:18:26 +0200
commit4368e86a02b8dde9824b44923dc01834046ad360 (patch)
treefac2bd0df1eebea6c0df5007a5157dabacf657c1 /libavcodec/vp9dec.h
parent0eb399ac3953da16f880a1e455bb009a45f76d49 (diff)
downloadffmpeg-4368e86a02b8dde9824b44923dc01834046ad360.tar.gz
avcodec/vp9dec: Constify VP9TileData->VP9Context pointer target
This is possible now that ff_thread_await_progress() accepts a const ThreadFrame*. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vp9dec.h')
-rw-r--r--libavcodec/vp9dec.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vp9dec.h b/libavcodec/vp9dec.h
index 4bfd50d27b..de7aba0458 100644
--- a/libavcodec/vp9dec.h
+++ b/libavcodec/vp9dec.h
@@ -166,9 +166,7 @@ typedef struct VP9Context {
} VP9Context;
struct VP9TileData {
- //VP9Context should be const, but because of the threading API(generates
- //a lot of warnings) it's not.
- VP9Context *s;
+ const VP9Context *s;
VPXRangeCoder *c_b;
VPXRangeCoder *c;
int row, row7, col, col7;