[vlc-devel] [PATCH] aom: Disable module for WindowsXP

Hugo Beauzée-Luyssen hugo at beauzee.fr
Wed May 26 15:55:07 UTC 2021


It consistantly crashes on that platform and seems to behave properly
starting from Windows Vista
Fix #25745
---
 modules/codec/aom.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index 29e84f899f..fb36aaec30 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -37,6 +37,10 @@
 
 #include "../packetizer/iso_color_tables.h"
 
+#ifdef _WIN32
+#include <versionhelpers.h>
+#endif
+
 /****************************************************************************
  * Local prototypes
  ****************************************************************************/
@@ -289,6 +293,11 @@ static int OpenDecoder(vlc_object_t *p_this)
     const aom_codec_iface_t *iface;
     int av_version;
 
+#ifdef _WIN32
+    if (!IsWindowsVistaOrGreater())
+        return VLC_EGENERIC;
+#endif
+
     if (dec->fmt_in.i_codec != VLC_CODEC_AV1)
         return VLC_EGENERIC;
 
-- 
2.30.2



More information about the vlc-devel mailing list