Changed validation of reference frame size
authorYaowu Xu <yaowu@google.com>
Thu, 24 Jul 2014 16:12:46 +0000 (09:12 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 24 Jul 2014 21:58:01 +0000 (14:58 -0700)
commit9261e1aa6e192ff72cd4ded00898b001c0ead4b9
tree7872ee8598629e5f9b338fb940ba4ecb51ec5dea
parent0cf0b02c4c9dd7dc1338a7514a1e47588d74e704
Changed validation of reference frame size

A previous change, https://gerrit.chromium.org/gerrit/#/c/70632,
introduced a size validation for reference frames to insuare the
input stream is a valid VP9 stream. However, the logic requiring
all reference frames have valid size turned out to be too strict.

In this commit, we modify the validation to require one of the
reference frame has valid dimension. In addition, the decoder
reports error whenever it detects the use of reference frame
with invalid scalig ratio.

Change-Id: If8efc312244087556cfe00f1fcbdff811268ebad
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decodemv.c