st/vdpau: fix GenerateCSCMatrix with NULL procamp
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 9 Oct 2013 00:23:50 +0000 (02:23 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 9 Oct 2013 11:02:40 +0000 (13:02 +0200)
commit1a5bac2149fa2c6224b40c0b40839c2025414e79
treec9aff52f1368857b3a91a3b7f8aacdb9ada96137
parent5b4e2db12d9b45e898a8eb6599d928504ffd30c3
st/vdpau: fix GenerateCSCMatrix with NULL procamp

As per API specification, it is legal to supply a NULL procamp. In this
case, a CSC matrix according to the colorspace should be generated,
but no further adjustments are made.

Addresses:
https://trac.videolan.org/vlc/ticket/9281
https://bugs.freedesktop.org/show_bug.cgi?id=68792

Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/mixer.c