radeon/uvd: silence a warning
authorMarek Olšák <marek.olsak@amd.com>
Wed, 10 Feb 2016 19:15:07 +0000 (20:15 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 Feb 2016 19:16:17 +0000 (20:16 +0100)
src/gallium/drivers/radeon/radeon_uvd.c

index 1f5a16aaca6fc8c920a0485a62721d57e22175ed..367aabc7a182cdb2920f99d03ee70231eaf02474 100644 (file)
@@ -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;