--- a/libavcodec/libaomdec.c
+++ b/libavcodec/libaomdec.c
@@ -216,7 +216,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());
 }
 
 AVCodec ff_libaom_av1_decoder = {
