Browse Source

avcodec/dxva: use DXVA_NoEncrypt

It is always defined when we use the dxva.h GUIDs.
pull/144/head
Steve Lhomme 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
0f92f19cfc
  1. 5
      modules/codec/avcodec/d3d11va.c
  2. 5
      modules/codec/avcodec/dxva2.c

5
modules/codec/avcodec/d3d11va.c

@ -70,9 +70,6 @@ vlc_module_begin()
set_va_callback(Open, 110)
vlc_module_end()
#include <initguid.h> /* must be last included to not redefine existing GUIDs */
DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81bed0, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
typedef struct
{
d3d11_device_t *d3d_dev;
@ -628,7 +625,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id,
score = 2;
else
continue;
if (IsEqualGUID(&cfg->guidConfigBitstreamEncryption, &DXVA2_NoEncrypt))
if (IsEqualGUID(&cfg->guidConfigBitstreamEncryption, &DXVA_NoEncrypt))
score += 16;
if (cfg_score < score) {

5
modules/codec/avcodec/dxva2.c

@ -58,9 +58,6 @@ vlc_module_begin()
set_va_callback(Open, 110)
vlc_module_end()
#include <initguid.h> /* must be last included to not redefine existing GUIDs */
DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81bed0, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
/* */
typedef struct {
@ -599,7 +596,7 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id,
score = 2;
else
continue;
if (IsEqualGUID(&cfg->guidConfigBitstreamEncryption, &DXVA2_NoEncrypt))
if (IsEqualGUID(&cfg->guidConfigBitstreamEncryption, &DXVA_NoEncrypt))
score += 16;
if (cfg_score < score) {

Loading…
Cancel
Save