]> granicus.if.org Git - libvpx/commit
Protect new metric computation with use_highbitdepth flag
authorYaowu Xu <yaowu@google.com>
Tue, 12 May 2015 22:02:43 +0000 (15:02 -0700)
committerYaowu Xu <yaowu@google.com>
Tue, 12 May 2015 22:12:05 +0000 (15:12 -0700)
commit3f42d10805d5ba5480236ec163776e5a49f6cf7c
treecf1264e45ecd594219820ec728713853e280bda0
parent47767609fed41f0273d4786f0e26f3d44f60500e
Protect new metric computation with use_highbitdepth flag

The computation of new metrics is not supported yet in highbitdepth
mode. This commit adds protection to make sure the computation is
done only when highbitdepth is not on. This protection shall be
revised when support of highbitdpeth computation is added.

This resolves the encoder crash when configured with both
--enable-internal-stats
--enable-vp9-highbitdepth

Change-Id: Id9f4bcc4fa26d9ca0e9eabade83f3f88a5b212e6
vp9/encoder/vp9_encoder.c