summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMatt Oliver <protogonoi@gmail.com>2021-10-20 07:02:39 +1100
committerMatt Oliver <protogonoi@gmail.com>2021-10-30 13:37:45 +1100
commitd92fdc714496d43234733c315894abe0beeb3529 (patch)
tree91833d8985b8aa8da4e619f79f48c3dcbbabe60f /libavcodec
parent4f8494fe5a4307e8661e4d66231f488d644a0524 (diff)
libaom: Dont use aom_codec_av1_dx_algo.
This fixes linking errors where variables cannot be correctly linked in from an external shared library such as with msvc (requires dllimport which is not used by libaom). Instead just call the function that returns the same variable. Signed-off-by: Matt Oliver <protogonoi@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libaomdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c
index 75ecc08970..d6b822fda2 100644
--- a/libavcodec/libaomdec.c
+++ b/libavcodec/libaomdec.c
@@ -241,7 +241,7 @@ static av_cold int aom_free(AVCodecContext *avctx)
static av_cold int av1_init(AVCodecContext *avctx)
{
- return aom_init(avctx, &aom_codec_av1_dx_algo);
+ return aom_init(avctx, aom_codec_av1_dx());
}
const AVCodec ff_libaom_av1_decoder = {