summaryrefslogtreecommitdiff
path: root/vp8/exports_enc
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2011-06-29 09:53:12 -0400
committerJohn Koleszar <jkoleszar@google.com>2011-06-29 10:30:19 -0400
commit05239f0c41780ee22ba7273f03edf6e7210ed58b (patch)
tree42c806f2c9775ec892a2ed15ad99d2f234a6c9ea /vp8/exports_enc
parentf3a13cb236754734c4b0cdf55bf7e277f91e519c (diff)
downloadlibvpx-05239f0c41780ee22ba7273f03edf6e7210ed58b.tar
libvpx-05239f0c41780ee22ba7273f03edf6e7210ed58b.tar.gz
libvpx-05239f0c41780ee22ba7273f03edf6e7210ed58b.tar.bz2
libvpx-05239f0c41780ee22ba7273f03edf6e7210ed58b.zip
vpxenc: prevent wraparound in the --rate-hist ringbuffer
For clips that are near 60fps and have a lot of alt refs, it's possible that the ring buffer holding the previous frames sizes/pts could wrap around, leading to a division by zero. In addition to checking for this condition in the ring buffer loop, the buffer size is made dependent on the actual frame rate in use, rather than defaulting to 60, which should improve accuracy at frame rates >= ~60. Change-Id: If5a04d6e847316dc5f7504f25c01164cf9332be8
Diffstat (limited to 'vp8/exports_enc')
0 files changed, 0 insertions, 0 deletions