summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2012-04-16 12:22:59 -0700
committerJohn Koleszar <jkoleszar@google.com>2012-04-16 12:23:33 -0700
commit21173e19994a7ffcbdc321c35c8c8ea8e6219b78 (patch)
treeb778e571e27c82204ac8e7660be3c69cf1b126e3
parentb5b61c179d8de1eab379d8e89d7b3bdca9d6c189 (diff)
downloadlibvpx-21173e19994a7ffcbdc321c35c8c8ea8e6219b78.tar
libvpx-21173e19994a7ffcbdc321c35c8c8ea8e6219b78.tar.gz
libvpx-21173e19994a7ffcbdc321c35c8c8ea8e6219b78.tar.bz2
libvpx-21173e19994a7ffcbdc321c35c8c8ea8e6219b78.zip
correct alt-ref contribution to frame rate
When producing an invisible ARF, the time stamp counters aren't updated since the last time stamp is seen by the codec twice. The prior code was trapping this case with refresh_alt_ref, but this isn't correct for other uses of the ARF. Instead, use the show_frame flag. Change-Id: If67fff7c6c66a3606698e34e2fb5731f56b4a223
-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 cd62c9c17..7bf05e0ae 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4807,7 +4807,7 @@ int vp8_get_compressed_data(VP8_COMP *cpi, unsigned int *frame_flags, unsigned l
}
// adjust frame rates based on timestamps given
- if (!cm->refresh_alt_ref_frame || (cpi->oxcf.number_of_layers > 1))
+ if (cm->show_frame)
{
int64_t this_duration;
int step = 0;