decode_test_driver: Use size_t for size arg to DecodeFrame().
Use size_t for DecodeFrame()'s size arg, and cast only at the vpx_codec_decode() call site. This silences warnings that appear in svc_test.cc when building with vs2013. Change-Id: I2cf39f02a45732c752097f07b0c7ad414b1517d8
This commit is contained in:
parent
fffb3be765
commit
235b77e54b
@ -15,11 +15,13 @@
|
||||
|
||||
namespace libvpx_test {
|
||||
|
||||
vpx_codec_err_t Decoder::DecodeFrame(const uint8_t *cxdata, int size) {
|
||||
vpx_codec_err_t Decoder::DecodeFrame(const uint8_t *cxdata, size_t size) {
|
||||
vpx_codec_err_t res_dec;
|
||||
InitOnce();
|
||||
REGISTER_STATE_CHECK(res_dec = vpx_codec_decode(&decoder_,
|
||||
cxdata, size, NULL, 0));
|
||||
REGISTER_STATE_CHECK(
|
||||
res_dec = vpx_codec_decode(&decoder_,
|
||||
cxdata, static_cast<unsigned int>(size),
|
||||
NULL, 0));
|
||||
return res_dec;
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ class Decoder {
|
||||
vpx_codec_destroy(&decoder_);
|
||||
}
|
||||
|
||||
vpx_codec_err_t DecodeFrame(const uint8_t *cxdata, int size);
|
||||
vpx_codec_err_t DecodeFrame(const uint8_t *cxdata, size_t size);
|
||||
|
||||
DxDataIterator GetDxData() {
|
||||
return DxDataIterator(&decoder_);
|
||||
|
Loading…
Reference in New Issue
Block a user