radeon/uvd: make 30M as minimum for MPEG4 dpb buffer size
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
@@ -304,6 +304,8 @@ static unsigned calc_dpb_size(struct ruvd_decoder *dec)
|
||||
|
||||
// IT surface buffer
|
||||
dpb_size += align(width_in_mb * height_in_mb * 32, 64);
|
||||
|
||||
dpb_size = MAX2(dpb_size, 30 * 1024 * 1024);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user