[vlc-devel] [PATCH] dxva2: remove duplicate condition
Alexandre Janniaux
ajanni at videolabs.io
Wed Mar 25 15:34:53 CET 2020
---
modules/codec/avcodec/dxva2.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 8846975b77..22afad5352 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -479,14 +479,12 @@ static int DxSetupOutput(vlc_va_t *va, const directx_va_mode_t *mode, const vide
else if (mode->log2_chroma_w == 1 && mode->log2_chroma_h == 0)
preferredOutput = MAKEFOURCC('Y','2','1','0'); // 10 bits 4:2:2
else
- preferredOutput = MAKEFOURCC('P','0','1','0');
+ preferredOutput = MAKEFOURCC('P','0','1','0');
}
else if (mode->log2_chroma_w == 0 && mode->log2_chroma_h == 0)
preferredOutput = MAKEFOURCC('A','Y','U','V'); // 8 bits 4:4:4
else if (mode->log2_chroma_w == 1 && mode->log2_chroma_h == 0)
preferredOutput = MAKEFOURCC('Y','U','Y','2'); // 8 bits 4:2:2
- else if (mode->bit_depth > 8)
- preferredOutput = MAKEFOURCC('P','0','1','0');
else
preferredOutput = MAKEFOURCC('N','V','1','2');
msg_Dbg(va, "favor decoder format %4.4s (for 4:%d:%d %d bits)", (const char*)&preferredOutput,
--
2.26.0
More information about the vlc-devel
mailing list