calc_pframe_target_size: fix integer overflow
authorXiahong Bao <xiahong.bao@nxp.com>
Fri, 27 Oct 2023 23:52:04 +0000 (08:52 +0900)
committerXiahong Bao <xiahong.bao@nxp.com>
Mon, 30 Oct 2023 02:17:17 +0000 (11:17 +0900)
commit61c927a4ede8b43b29091e3ee9f993eea3b3156a
treeec2bcf956f94fa66561dd1a781ba6ba1b1d37ae5
parentb759032a0ed2b57ea3412f6820eda377a2dad480
calc_pframe_target_size: fix integer overflow

The intermediate value in the target bandwidth
calculation may exceed integer bounds.

Bug: 308007926

Change-Id: I8288c5820db06a550d88bf91fccc86106996deaa
Signed-off-by: Xiahong Bao <xiahong.bao@nxp.com>
vp8/encoder/ratectrl.c