Correctly report "Unsupported bitstream profile"
authorYaowu Xu <yaowu@google.com>
Thu, 16 Jul 2015 22:40:22 +0000 (15:40 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 17 Jul 2015 17:51:02 +0000 (10:51 -0700)
commit7c0c62df1d25e76c52afb411ad342a82ed5d1ff0
treeddca76cf30359cdad350b98e2db6e6c8bcdabb9c
parentf83f9dbb3ad7129b7bd4768b5a610d28e32f4273
Correctly report "Unsupported bitstream profile"

For vp9 decoder build without profile 2 and profile 3 support, this
commit changes to report error "Unsupported bitstream profile" for
input streams in profile 2 or 3, rather than other misleading error
information.

In addition, one of the invalid files in unit tests is actually coded
profile 2, this commit makes it tested only when the decoder is built
with vp9-highbitdepth.

This fixes issue #1028.

Change-Id: I8b6c1210787c8f89c703a546687dcf973ac20fc0
test/decode_api_test.cc
test/invalid_file_test.cc
vp9/decoder/vp9_decodeframe.c