diff options
author | Leo Liu <[email protected]> | 2015-09-18 15:51:26 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-10-07 14:42:54 +0100 |
commit | ab68081ffb2c5f098bfb0f38b85f5d2f0e6824e7 (patch) | |
tree | 5f7a3071e8a10a657a9abb6ad6bd42f4945ee174 | |
parent | 46dc4946a24337796e2e22f72d08a87d415b04e6 (diff) |
radeon/vce: fix vui time_scale zero error
if app pass 0 as frame_rate_num, it should not be encoded to the VUI.
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Christian König <[email protected]>
Cc: "10.6 11.0" <[email protected]>
(cherry picked from commit 1e97b41893a4f53a71ee141a5e8a046fed7b49cd)
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce_40_2_2.c b/src/gallium/drivers/radeon/radeon_vce_40_2_2.c index e64fbc7afb0..c0056590427 100644 --- a/src/gallium/drivers/radeon/radeon_vce_40_2_2.c +++ b/src/gallium/drivers/radeon/radeon_vce_40_2_2.c @@ -233,6 +233,9 @@ static void vui(struct rvce_encoder *enc) { int i; + if (!enc->pic.rate_ctrl.frame_rate_num) + return; + RVCE_BEGIN(0x04000009); // vui RVCE_CS(0x00000000); //aspectRatioInfoPresentFlag RVCE_CS(0x00000000); //aspectRatioInfo.aspectRatioIdc |