aboutsummaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2021-10-01 13:16:56 -0700
committerMarco Paniconi <marpan@google.com>2021-10-01 13:19:29 -0700
commit167de33ca8b24f072a88fcf51fbe782763717d00 (patch)
tree73a9c6d71c248150f1abb8ed1b0bb6ee668acea6 /vp8
parentb68877a7ebfe764714f8ce7aeb2a7f6d12b77989 (diff)
downloadlibvpx-167de33ca8b24f072a88fcf51fbe782763717d00.tar.gz
vp8: Condition decimation drop logic on drop_frames_allowed
This allows user to make sure frame will be encoded when drop_frames is set off (on the fly), no matter the state of the buffer. Change-Id: Ia7b39b93fe3721dd586bdbede72c525db87b6890
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/onyx_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index c57c74646..8466bba7c 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -3481,7 +3481,7 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, size_t *size,
* Note that dropping a key frame can be problematic if spatial
* resampling is also active
*/
- if (cpi->decimation_factor > 0) {
+ if (cpi->decimation_factor > 0 && cpi->drop_frames_allowed) {
switch (cpi->decimation_factor) {
case 1:
cpi->per_frame_bandwidth = cpi->per_frame_bandwidth * 3 / 2;