[vlc-commits] fourcc: fix opaque fallbacks
Thomas Guillem
git at videolan.org
Mon Mar 19 12:15:45 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 16 09:08:24 2018 +0100| [deac05c7bef7015c02984218d6acb8f517486e2e] | committer: Thomas Guillem
fourcc: fix opaque fallbacks
(cherry picked from commit b0e176941f5b368572a8114b04e6b6da7eb93f76)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=deac05c7bef7015c02984218d6acb8f517486e2e
---
src/misc/fourcc.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 1b18ea29d0..cd2efc198d 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -374,10 +374,10 @@ static const vlc_fourcc_t p_I444_16B_fallback[] = {
/* Fallbacks for cvpx */
static const vlc_fourcc_t p_CVPX_VIDEO_NV12_fallback[] = {
- VLC_CODEC_CVPX_NV12, VLC_CODEC_I420, 0,
+ VLC_CODEC_CVPX_NV12, VLC_CODEC_NV12, VLC_CODEC_I420, 0,
};
static const vlc_fourcc_t p_CVPX_VIDEO_UYVY_fallback[] = {
- VLC_CODEC_CVPX_UYVY, VLC_CODEC_I420, 0,
+ VLC_CODEC_CVPX_UYVY, VLC_CODEC_UYVY, 0,
};
static const vlc_fourcc_t p_CVPX_VIDEO_I420_fallback[] = {
VLC_CODEC_CVPX_I420, VLC_CODEC_I420, 0,
@@ -386,7 +386,7 @@ static const vlc_fourcc_t p_CVPX_VIDEO_BGRA_fallback[] = {
VLC_CODEC_CVPX_BGRA, VLC_CODEC_BGRA, 0,
};
static const vlc_fourcc_t p_CVPX_VIDEO_P010_fallback[] = {
- VLC_CODEC_CVPX_P010, VLC_CODEC_P010, VLC_CODEC_I420_10B, 0
+ VLC_CODEC_CVPX_P010, VLC_CODEC_P010, VLC_CODEC_I420_10L, 0
};
static const vlc_fourcc_t p_VAAPI_420_fallback[] = {
@@ -394,19 +394,23 @@ static const vlc_fourcc_t p_VAAPI_420_fallback[] = {
};
static const vlc_fourcc_t p_VAAPI_420_10BPP_fallback[] = {
- VLC_CODEC_VAAPI_420_10BPP, VLC_CODEC_I420_10B, VLC_CODEC_P010, 0,
+ VLC_CODEC_VAAPI_420_10BPP, VLC_CODEC_P010, VLC_CODEC_I420_10L, 0,
};
static const vlc_fourcc_t p_D3D9_OPAQUE_fallback[] = {
VLC_CODEC_D3D9_OPAQUE, VLC_CODEC_I420, 0,
};
+static const vlc_fourcc_t p_D3D9_OPAQUE_10B_fallback[] = {
+ VLC_CODEC_D3D9_OPAQUE_10B, VLC_CODEC_P010, VLC_CODEC_I420_10L, 0,
+};
+
static const vlc_fourcc_t p_D3D11_OPAQUE_fallback[] = {
VLC_CODEC_D3D11_OPAQUE, VLC_CODEC_NV12, 0,
};
static const vlc_fourcc_t p_D3D11_OPAQUE_10B_fallback[] = {
- VLC_CODEC_D3D11_OPAQUE_10B, VLC_CODEC_P010, 0,
+ VLC_CODEC_D3D11_OPAQUE_10B, VLC_CODEC_P010, VLC_CODEC_I420_10L, 0,
};
static const vlc_fourcc_t p_I440_fallback[] = {
@@ -496,6 +500,7 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
p_VAAPI_420_fallback,
p_VAAPI_420_10BPP_fallback,
p_D3D9_OPAQUE_fallback,
+ p_D3D9_OPAQUE_10B_fallback,
p_D3D11_OPAQUE_fallback,
p_D3D11_OPAQUE_10B_fallback,
NULL,
@@ -521,6 +526,7 @@ static const vlc_fourcc_t p_list_YUV[] = {
VLC_CODEC_CVPX_NV12,
VLC_CODEC_CVPX_UYVY,
VLC_CODEC_CVPX_I420,
+ VLC_CODEC_CVPX_P010,
VLC_CODEC_VAAPI_420,
VLC_CODEC_VAAPI_420_10BPP,
VLC_CODEC_D3D9_OPAQUE,
More information about the vlc-commits
mailing list