]> granicus.if.org Git - handbrake/commit
encavcodec: fix bitrate ceiling overflow for VP8/9
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 12 Mar 2019 15:06:24 +0000 (09:06 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 12 Mar 2019 15:09:06 +0000 (09:09 -0600)
commitb2da61acec2b987a9f58559f8afef606ebda3ff5
tree2e9bf7de18a69aa9198e7d1628993ac5e0d46855
parentd7074958d110d45ac220496bb7f19f8687b5b69f
encavcodec: fix bitrate ceiling overflow for VP8/9

When using constant quality encoding with VP8/9, we set a bitrate
ceiling to prevent bitrate spikes.  The calculation of this ceiling was
duplicated at some point and the second copy was not transcribed
properly and resulted in integer overflow.

Fixes https://github.com/HandBrake/HandBrake/issues/1966
libhb/encavcodec.c