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