codec: avcodec: bypass removed define for Intel workarounds
authorFrançois Cartegnie <fcvlcdev@free.fr>
Mon, 12 Aug 2024 12:32:42 +0000 (19:32 +0700)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
adapted from cherry picked commit 1280728ad305f00ceba3491ce11bf66107017a6c

Gbp-Pq: Name 0075-codec-avcodec-bypass-removed-define-for-Intel-workar.patch

modules/codec/avcodec/d3d11va.c
modules/codec/avcodec/dxva2.c

index e1560a9312ccb60c0dd64f1240323a8fea4b908d..5260628364f0011d9ad07dcffffe7cb805fb832c 100644 (file)
 #define D3D_DecoderSurface  ID3D11VideoDecoderOutputView
 #include "directx_va.h"
 
+#ifndef FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO
+# define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 // moved to libavcodec/dxva2_internal.h :/
+#endif
+
 static int Open(vlc_va_t *, AVCodecContext *, const AVPixFmtDescriptor *, enum PixelFormat,
                 const es_format_t *, picture_sys_t *p_sys);
 static void Close(vlc_va_t *, void **);
index 2e6809a054105a76bf6d13acfd074f7a6aa97335..037ad7d4488744892984ff1a08b6a9a33b9aa363 100644 (file)
 #define D3D_DecoderSurface  IDirect3DSurface9
 #include "directx_va.h"
 
+#ifndef FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO
+# define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 // moved to libavcodec/dxva2_internal.h :/
+#endif
+
 static int Open(vlc_va_t *, AVCodecContext *, const AVPixFmtDescriptor *, enum PixelFormat,
                 const es_format_t *, picture_sys_t *p_sys);
 static void Close(vlc_va_t *, void **);