mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
video: rockchip: mpp: rkvenc2: Fix u32 overflow
Change-Id: I1dae138bcb57283d6c609bd73068c8714e8ce990 Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
@@ -1365,9 +1365,9 @@ static void rkvenc2_calc_timeout_thd(struct mpp_dev *mpp)
|
||||
* else use x1024 core clk cycles
|
||||
*/
|
||||
if (hw->vepu_type == RKVENC_VEPU_510)
|
||||
timeout_thd |= timeout_ms * clk_get_rate(enc->core_clk_info.clk) / 256000;
|
||||
timeout_thd |= timeout_ms * (clk_get_rate(enc->core_clk_info.clk) / 256000);
|
||||
else
|
||||
timeout_thd |= timeout_ms * clk_get_rate(enc->core_clk_info.clk) / 1024000;
|
||||
timeout_thd |= timeout_ms * (clk_get_rate(enc->core_clk_info.clk) / 1024000);
|
||||
|
||||
mpp_write(mpp, RKVENC_WDG, timeout_thd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user