517bf9
diff -up firefox-102.0/media/ffvpx/config_common.h.dav1d-remove firefox-102.0/media/ffvpx/config_common.h
517bf9
--- firefox-102.0/media/ffvpx/config_common.h.dav1d-remove	2022-08-08 12:48:33.218128539 +0200
517bf9
+++ firefox-102.0/media/ffvpx/config_common.h	2022-08-08 12:48:52.986003374 +0200
517bf9
@@ -24,15 +24,11 @@
517bf9
 #undef CONFIG_VP8_VAAPI_HWACCEL
517bf9
 #undef CONFIG_VP9_VAAPI_HWACCEL
517bf9
 #undef CONFIG_AV1_VAAPI_HWACCEL
517bf9
-#undef CONFIG_LIBDAV1D
517bf9
-#undef CONFIG_AV1_DECODER
517bf9
 #define CONFIG_VAAPI 1
517bf9
 #define CONFIG_VAAPI_1 1
517bf9
 #define CONFIG_VP8_VAAPI_HWACCEL 1
517bf9
 #define CONFIG_VP9_VAAPI_HWACCEL 1
517bf9
 #define CONFIG_AV1_VAAPI_HWACCEL 1
517bf9
-#define CONFIG_LIBDAV1D 1
517bf9
-#define CONFIG_AV1_DECODER 1
517bf9
 #endif
517bf9
 
517bf9
 #endif
517bf9
diff -up firefox-102.0/media/ffvpx/libavcodec/moz.build.dav1d-remove firefox-102.0/media/ffvpx/libavcodec/moz.build
517bf9
--- firefox-102.0/media/ffvpx/libavcodec/moz.build.dav1d-remove	2022-08-08 12:44:24.098710736 +0200
517bf9
+++ firefox-102.0/media/ffvpx/libavcodec/moz.build	2022-08-08 12:46:42.635828719 +0200
517bf9
@@ -104,17 +104,23 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']:
517bf9
     ]
517bf9
     if CONFIG['MOZ_WAYLAND']:
517bf9
         LOCAL_INCLUDES += ['/media/mozva']
517bf9
+        if CONFIG['MOZ_DAV1D_ASM']:
517bf9
+            SOURCES += [
517bf9
+                'libdav1d.c',
517bf9
+            ]
517bf9
         SOURCES += [
517bf9
             'atsc_a53.c',
517bf9
-            'libdav1d.c',
517bf9
             'vaapi_av1.c',
517bf9
             'vaapi_decode.c',
517bf9
             'vaapi_vp8.c',
517bf9
             'vaapi_vp9.c',
517bf9
         ]
517bf9
+        if CONFIG['MOZ_DAV1D_ASM']:
517bf9
+            USE_LIBS += [
517bf9
+                'dav1d',
517bf9
+                'media_libdav1d_asm',
517bf9
+            ]
517bf9
         USE_LIBS += [
517bf9
-          'dav1d',
517bf9
-          'media_libdav1d_asm',
517bf9
           'mozva'
517bf9
         ]
517bf9