From: Marek Olšák Date: Wed, 10 Feb 2016 19:15:07 +0000 (+0100) Subject: radeon/uvd: silence a warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79d0082c6442d4c1cade1c4a4904c349f8511f4a;p=mesa.git radeon/uvd: silence a warning --- diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 1f5a16aaca6..367aabc7a18 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -402,6 +402,9 @@ static struct ruvd_h264 get_h264_msg(struct ruvd_decoder *dec, struct pipe_h264_ result.log2_max_pic_order_cnt_lsb_minus4 = pic->pps->sps->log2_max_pic_order_cnt_lsb_minus4; switch (dec->base.chroma_format) { + case PIPE_VIDEO_CHROMA_FORMAT_NONE: + /* TODO: assert? */ + break; case PIPE_VIDEO_CHROMA_FORMAT_400: result.chroma_format = 0; break;