radeon/radeon_vce: fix out of target bitrate in CBR mode (H.264)
authorLouis Li <Ching-shih.Li@amd.com>
Tue, 31 Mar 2020 02:20:21 +0000 (10:20 +0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 10 Aug 2020 01:39:18 +0000 (01:39 +0000)
commitf7e7cf637e1b457d56b3aaf4d05c928ef9acff17
tree62a9abd140cb084316013bbf41ff119e0c51cc46
parent4975b3ec551d81460f07d0fe6a645c1e1f1548f1
radeon/radeon_vce: fix out of target bitrate in CBR mode (H.264)

StoneyRidge may not comply to required target bitrate
when generating H.264 stream in CBR mode.

Signed-off-by: Louis Li <Ching-shih.Li@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4384>
src/gallium/drivers/radeon/radeon_vce_52.c