[FFmpeg-devel] [PATCH] libaom: Dont use aom_codec_av1_dx_algo.

Matt Oliver protogonoi at gmail.com
Wed Oct 20 19:52:55 EEST 2021

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.
 libavcodec/libaomdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 = {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libaom-Dont-use-aom_codec_av1_dx_algo.patch
Type: application/octet-stream
Size: 979 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211021/11cbe74e/attachment.obj>

More information about the ffmpeg-devel mailing list