summaryrefslogtreecommitdiff
path: root/test/test.mk
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2014-08-09 18:35:40 -0700
committerJames Zern <jzern@google.com>2014-08-11 11:44:00 -0700
commit6a2e9ef20aed3b87259e9491fc76c0b83a76ab3c (patch)
tree5fee10c6ceb3342d1e06f374f2225b7d72782eda /test/test.mk
parentccddd5d0f9a69c7369f9a68c155577e4e0b3afd1 (diff)
downloadlibvpx-6a2e9ef20aed3b87259e9491fc76c0b83a76ab3c.tar
libvpx-6a2e9ef20aed3b87259e9491fc76c0b83a76ab3c.tar.gz
libvpx-6a2e9ef20aed3b87259e9491fc76c0b83a76ab3c.tar.bz2
libvpx-6a2e9ef20aed3b87259e9491fc76c0b83a76ab3c.zip
vpx_codec_decode: check data size
When a valid data pointer is given make sure the size is greater than zero. A previous check for vp9 was incorrectly removed in: 7050074 Make the api behavior conform to api spec. No semantics for valid pointers + 0-sized frames are defined for VPx codecs, so move the check to vpx_codec_decode(). This avoids an assert in vp9. + add some basic invalid param testing for decoder init/decode/destroy Change-Id: I99f9cef6076d15874fd72ac973f2685d8a2353c3
Diffstat (limited to 'test/test.mk')
-rw-r--r--test/test.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test.mk b/test/test.mk
index 057e1e8e3..0814c2b66 100644
--- a/test/test.mk
+++ b/test/test.mk
@@ -59,6 +59,7 @@ LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ../webmdec.h
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += webm_video_source.h
endif
+LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += decode_api_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += invalid_file_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += test_vector_test.cc