shithub: libvpx

Download patch

ref: 9ce4d537875edd7c9ff7eaf597a2b0bd80b7aa21
parent: b26668a19dce1b50e1c24bfc2cca0e4c10f98558
parent: caffcb8b8d9c41444c29c11d6953204859a73151
author: James Zern <[email protected]>
date: Tue Aug 12 20:24:31 EDT 2014

Merge "decode_api_test: fix type conversion warning"

--- a/test/decode_api_test.cc
+++ b/test/decode_api_test.cc
@@ -112,9 +112,9 @@
 
   vpx_codec_ctx_t dec;
   EXPECT_EQ(VPX_CODEC_OK, vpx_codec_dec_init(&dec, codec, NULL, 0));
+  const uint32_t frame_size = static_cast<uint32_t>(video.frame_size());
   EXPECT_EQ(VPX_CODEC_MEM_ERROR,
-            vpx_codec_decode(&dec, video.cxdata(), video.frame_size(), NULL,
-                             0));
+            vpx_codec_decode(&dec, video.cxdata(), frame_size, NULL, 0));
   vpx_codec_iter_t iter = NULL;
   EXPECT_EQ(NULL, vpx_codec_get_frame(&dec, &iter));