From: Yaowu Xu Date: Thu, 1 Sep 2016 15:59:46 +0000 (-0700) Subject: add an explicit conversion from size_t to int X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7ae12d7fdeca387f3094cc319c2a2e297686092;p=libvpx add an explicit conversion from size_t to int Function ans_read_int() takes int as parameter, this commit uses an explicit conversion to avoid MSVC building warning. Change-Id: Ia405e1d5a86c0f42932fa1da29417ccbf2dd58e7 --- diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c index 1f1f358ed..638fa01f5 100644 --- a/av1/decoder/decodeframe.c +++ b/av1/decoder/decodeframe.c @@ -3478,7 +3478,7 @@ static int read_compressed_header(AV1Decoder *pbi, const uint8_t *data, aom_internal_error(&cm->error, AOM_CODEC_MEM_ERROR, "Failed to allocate bool decoder 0"); #else - if (ans_read_init(&r, data, partition_size)) + if (ans_read_init(&r, data, (int)partition_size)) aom_internal_error(&cm->error, AOM_CODEC_MEM_ERROR, "Failed to allocate compressed header ANS decoder"); #endif // !CONFIG_ANS