]> granicus.if.org Git - libvpx/commitdiff
decode_with_drops.c: Cast away MSVC data loss warning.
authorTom Finegan <tomfinegan@google.com>
Wed, 19 Feb 2014 19:55:06 +0000 (11:55 -0800)
committerTom Finegan <tomfinegan@google.com>
Wed, 19 Feb 2014 19:55:06 +0000 (11:55 -0800)
Change-Id: Ib8ee2b9a4cb785176ca1054489df5dced004837a

examples/decode_with_drops.c

index c6f7d43b9236b3e6163697800a0409fc52805246..af1aa636b4e4ed2b8cc2dc9e9f412e86db1cf380 100644 (file)
@@ -120,7 +120,7 @@ int main(int argc, char **argv) {
     int skip;
     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.");
 
     ++frame_cnt;