]> granicus.if.org Git - libvpx/commitdiff
decode_test_driver: fix type size warning
authorJames Zern <jzern@google.com>
Wed, 25 Jun 2014 05:44:24 +0000 (22:44 -0700)
committerJames Zern <jzern@google.com>
Wed, 25 Jun 2014 05:44:24 +0000 (22:44 -0700)
like vpx_codec_decode(), vpx_codec_peek_stream_info() takes an unsigned
int, not size_t, parameter for buffer size

Change-Id: I4ce0e1fbbde461c2e1b8fcbaac3cd203ed707460

test/decode_test_driver.cc

index 655b09055931f29fad17c2c910c9ac294a9bddbe..cd1a795696068b6e0f443dcffa32a90aada46235 100644 (file)
@@ -19,7 +19,8 @@ const char kVP8Name[] = "WebM Project VP8";
 
 vpx_codec_err_t Decoder::PeekStream(const uint8_t *cxdata, size_t size,
                                     vpx_codec_stream_info_t *stream_info) {
-  return vpx_codec_peek_stream_info(CodecInterface(), cxdata, size,
+  return vpx_codec_peek_stream_info(CodecInterface(),
+                                    cxdata, static_cast<unsigned int>(size),
                                     stream_info);
 }