st/vdpau: check for null pointer in get/put bits.
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Thu, 2 Jun 2016 06:41:58 +0000 (12:11 +0530)
committerChristian König <christian.koenig@amd.com>
Thu, 2 Jun 2016 07:28:48 +0000 (09:28 +0200)
commit6c9a352d79e215b545b5d400ae946a27d56e4abd
tree5bd985195ca158ff80cfbaf15cf660d7dcc7bd0f
parentb3e75c39976c03f73128ffd802465799ac0e4ef5
st/vdpau: check for null pointer in get/put bits.

Check for null pointer before accessing arrays in get/put bits
native/YCbCr/Indexed in VdpOutputSurface and VdpVideoSurface.

Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/output.c
src/gallium/state_trackers/vdpau/surface.c