The types of both 'encrypted' and 'picture->protected_playback'
are bool, so there is no need. I guess this is a typo.
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23202>
struct pipe_picture_desc *picture)
{
DECRYPT_PARAMETERS *decrypt = (DECRYPT_PARAMETERS *)picture->decrypt_key;
- bool encrypted = (DECRYPT_PARAMETERS *)picture->protected_playback;
+ bool encrypted = picture->protected_playback;
struct si_texture *luma;
struct si_texture *chroma;
struct pipe_video_buffer *out_surf = target;