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