]> granicus.if.org Git - libvpx/commitdiff
Skip calculating internal stats when frame dropped
authorJerome Jiang <jianj@google.com>
Tue, 24 Jan 2023 19:08:17 +0000 (14:08 -0500)
committerJerome Jiang <jianj@google.com>
Tue, 24 Jan 2023 19:08:17 +0000 (14:08 -0500)
Bug: webm:1771
Change-Id: I30cd5b7ec0945b521a1cc03999d39ec6a25f1696

vp9/encoder/vp9_encoder.c

index 1c5c9fc923abfa9aea82785a5ea5b5dd35d909a3..b66fdc0bca30b0fba041d63165065d238e06602f 100644 (file)
@@ -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);