[Mesa-dev] [PATCH] radeon/video: Return false explicitly for HEVC if not the case

Leo Liu leo.liu at amd.com
Wed Aug 23 13:55:48 UTC 2017


Signed-off-by: Leo Liu <leo.liu at amd.com>
---
 src/gallium/drivers/radeon/radeon_video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
index 7c2553364e..99b6676fee 100644
--- a/src/gallium/drivers/radeon/radeon_video.c
+++ b/src/gallium/drivers/radeon/radeon_video.c
@@ -280,6 +280,7 @@ int rvid_get_video_param(struct pipe_screen *screen,
 					profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10);
 			else if (rscreen->family >= CHIP_CARRIZO)
 				return profile == PIPE_VIDEO_PROFILE_HEVC_MAIN;
+			return false;
 		case PIPE_VIDEO_FORMAT_JPEG:
 			if (rscreen->family < CHIP_CARRIZO || rscreen->family >= CHIP_VEGA10)
 				return false;
-- 
2.11.0



More information about the mesa-dev mailing list