summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_uvd.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-02-10 20:15:07 +0100
committerMarek Olšák <[email protected]>2016-02-10 20:16:17 +0100
commit79d0082c6442d4c1cade1c4a4904c349f8511f4a (patch)
treed7e286100dbefc628e08c10390bc57105c431719 /src/gallium/drivers/radeon/radeon_uvd.c
parentd9c8a8fe6199cb6526c01e19e36e77f0e4a1b257 (diff)
radeon/uvd: silence a warning
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_uvd.c')
-rw-r--r--src/gallium/drivers/radeon/radeon_uvd.c3
1 files changed, 3 insertions, 0 deletions
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;