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