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:
Leo Liu 2015-03-12 16:24:57 -04:00 committed by Marek Olšák
parent baecc518c9
commit 22f71dbf79

View file

@ -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: