From: Tom Finegan Date: Wed, 19 Feb 2014 20:08:18 +0000 (-0800) Subject: simple_decoder.c: Silence MSVC data loss warning. X-Git-Tag: v1.4.0~2324^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebf455099034d8af9c9fa6e0d86d69251773a9bb;p=libvpx simple_decoder.c: Silence MSVC data loss warning. Change-Id: I138d7f62ac7e905642405e60a49ac3d282695e3f --- diff --git a/examples/simple_decoder.c b/examples/simple_decoder.c index b0ca77d1d..8c150510a 100644 --- a/examples/simple_decoder.c +++ b/examples/simple_decoder.c @@ -134,7 +134,7 @@ int main(int argc, char **argv) { size_t frame_size = 0; const unsigned char *frame = vpx_video_reader_get_frame(reader, &frame_size); - if (vpx_codec_decode(&codec, frame, frame_size, NULL, 0)) + if (vpx_codec_decode(&codec, frame, (unsigned int)frame_size, NULL, 0)) die_codec(&codec, "Failed to decode frame."); while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) {