]> granicus.if.org Git - libvpx/commitdiff
simple_decoder.c: Silence MSVC data loss warning.
authorTom Finegan <tomfinegan@google.com>
Wed, 19 Feb 2014 20:08:18 +0000 (12:08 -0800)
committerTom Finegan <tomfinegan@google.com>
Wed, 19 Feb 2014 20:08:18 +0000 (12:08 -0800)
Change-Id: I138d7f62ac7e905642405e60a49ac3d282695e3f

examples/simple_decoder.c

index b0ca77d1d0f4c98beeba8ea816a8008d7e0db9e9..8c150510a61f17a1495c289135fdb01b473510b9 100644 (file)
@@ -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) {