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