From: Jerome Jiang Date: Tue, 24 Jan 2023 19:08:17 +0000 (-0500) Subject: Skip calculating internal stats when frame dropped X-Git-Tag: v1.13.0-rc1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72cfcdd95ab0d17c4b8b13d9da00d1458105bf80;p=libvpx Skip calculating internal stats when frame dropped Bug: webm:1771 Change-Id: I30cd5b7ec0945b521a1cc03999d39ec6a25f1696 --- 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);