aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2023-01-24 14:08:17 -0500
committerJerome Jiang <jianj@google.com>2023-01-24 14:08:17 -0500
commit72cfcdd95ab0d17c4b8b13d9da00d1458105bf80 (patch)
tree9934a63f36a08be834690b4607d011bbe3133f87
parent67abc6738942fff8299919e736138679d4a08016 (diff)
downloadlibvpx-72cfcdd95ab0d17c4b8b13d9da00d1458105bf80.tar.gz
Skip calculating internal stats when frame dropped
Bug: webm:1771 Change-Id: I30cd5b7ec0945b521a1cc03999d39ec6a25f1696
-rw-r--r--vp9/encoder/vp9_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index 1c5c9fc92..b66fdc0bc 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -7945,7 +7945,7 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
#if CONFIG_INTERNAL_STATS
- if (oxcf->pass != 1) {
+ if (oxcf->pass != 1 && !cpi->last_frame_dropped) {
double samples = 0.0;
cpi->bytes += (int)(*size);