]> granicus.if.org Git - libvpx/commit
vp9_ratectrl: fix some signed integer overflows
authorJames Zern <jzern@google.com>
Sat, 21 Mar 2020 22:46:48 +0000 (15:46 -0700)
committerJames Zern <jzern@google.com>
Sat, 21 Mar 2020 23:18:04 +0000 (16:18 -0700)
commit5eab093a7bc48dab36f9e2a40f1dff0f39497839
tree25af6842da5b7664421c5bf707b73961f2daee8f
parenta0765aa9f34e7f5dfa1ba938dbe9e1399a75bf5e
vp9_ratectrl: fix some signed integer overflows

in calculations involving bitrate in vp9_rc_postencode_update() and
calc_pframe_target_size_one_pass_vbr()

note this isn't exhaustive, it's just the result of a vpxenc run with:
-w 800 -h 480 --cpu-used=8 --rt --target-bitrate=1400000000

Bug: b/151945689
Change-Id: I941a77340fd44b09fc965dd182d7aeab9f1f3da0
vp9/encoder/vp9_ratectrl.c