summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_psnr.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@google.com>2013-02-15 15:55:31 -0800
committerRonald S. Bultje <rbultje@google.com>2013-02-15 17:21:16 -0800
commitebfdaa0e0bff5d5eea17277e9e6bf2129ee1d155 (patch)
tree36c8fbbecd28af175514a2d4bbaf2b123bcaa5de /vp9/encoder/vp9_psnr.c
parent4dfcb129fdcab683644d667cf56d689e79fa7db3 (diff)
downloadlibvpx-ebfdaa0e0bff5d5eea17277e9e6bf2129ee1d155.tar
libvpx-ebfdaa0e0bff5d5eea17277e9e6bf2129ee1d155.tar.gz
libvpx-ebfdaa0e0bff5d5eea17277e9e6bf2129ee1d155.tar.bz2
libvpx-ebfdaa0e0bff5d5eea17277e9e6bf2129ee1d155.zip
Prevent filling transform size cache with uninitialized values.
The 32x32 value in case of splitmv was uninitialized. this leads to all kind of erratic behaviour down the line. Also fill in dummy values for superblocks in keyframes (the values are currently unused, but we run into integer overflows anyway, which makes detecting bad cases harder). Lastly, in case we did not find any RD value at all, don't set tx_diff to INT_MIN, but instead set it to zero (since if we couldn't find a mode, it's unlikely that any particular transform would have made that worse or better; rather, it's likely equally bad for all tx_sizes). Change-Id: If236fd3aa2037e5b398d03f3b1978fbbc5ce740e
Diffstat (limited to 'vp9/encoder/vp9_psnr.c')
0 files changed, 0 insertions, 0 deletions