diff options
author | 2013-05-04 07:07:25 +0200 | |
---|---|---|
committer | 2013-05-05 18:44:23 +0200 | |
commit | 977dc4c63df0c38d6ce34b51f97352eb3d0e91e9 (patch) | |
tree | 9fcf7d9fd826fb3cec28c632d1d1cd113919c191 | |
parent | 81a1d07b815a50b6a574caf6fd28391810df9a2d (diff) |
csputils: use AVCOL_SPC_YCOCG instead of AVCOL_SPC_YCGCO (fixes Libav build)
This one should probably be blamed on ffmpeg. Its headers contain:
#define AVCOL_SPC_YCGCO AVCOL_SPC_YCOCG
Uh, ok...
-rw-r--r-- | video/csputils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/csputils.c b/video/csputils.c index d2793532df..cc87725d45 100644 --- a/video/csputils.c +++ b/video/csputils.c @@ -60,7 +60,7 @@ enum mp_csp avcol_spc_to_mp_csp(enum AVColorSpace colorspace) case AVCOL_SPC_SMPTE170M: return MP_CSP_BT_601; case AVCOL_SPC_SMPTE240M: return MP_CSP_SMPTE_240M; case AVCOL_SPC_RGB: return MP_CSP_RGB; - case AVCOL_SPC_YCGCO: return MP_CSP_YCGCO; + case AVCOL_SPC_YCOCG: return MP_CSP_YCGCO; default: return MP_CSP_AUTO; } } @@ -81,7 +81,7 @@ enum AVColorSpace mp_csp_to_avcol_spc(enum mp_csp colorspace) case MP_CSP_BT_601: return AVCOL_SPC_BT470BG; case MP_CSP_SMPTE_240M: return AVCOL_SPC_SMPTE240M; case MP_CSP_RGB: return AVCOL_SPC_RGB; - case MP_CSP_YCGCO: return AVCOL_SPC_YCGCO; + case MP_CSP_YCGCO: return AVCOL_SPC_YCOCG; default: return AVCOL_SPC_UNSPECIFIED; } } |