]> granicus.if.org Git - libvpx/commitdiff
add an explicit conversion from size_t to int
authorYaowu Xu <yaowu@google.com>
Thu, 1 Sep 2016 15:59:46 +0000 (08:59 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 1 Sep 2016 15:59:46 +0000 (08:59 -0700)
Function ans_read_int() takes int as parameter, this commit uses an
explicit conversion to avoid MSVC building warning.

Change-Id: Ia405e1d5a86c0f42932fa1da29417ccbf2dd58e7

av1/decoder/decodeframe.c

index 1f1f358ed8fb02963ab2ee9af5b029c4f2fcc378..638fa01f5c1ee4bb0d587ca716836b0920ebcf91 100644 (file)
@@ -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