]> granicus.if.org Git - libvpx/commitdiff
webmdec: Fix visual studio warnings.
authorVignesh Venkatasubramanian <vigneshv@google.com>
Wed, 30 Apr 2014 22:15:47 +0000 (15:15 -0700)
committerVignesh Venkatasubramanian <vigneshv@google.com>
Tue, 6 May 2014 18:18:44 +0000 (11:18 -0700)
Fix a couple of visual studio warnings.

Change-Id: I161edf4b37f5ac2defbe6eb5b7e34d219b1f52d9

webmdec.cc

index eb89befd8810f6b314f01bb9894ac220cc9d5878..4383e8efd8d995e4ba327493935fd6f1ee2dc6dd 100644 (file)
@@ -108,8 +108,8 @@ int file_is_webm(struct WebmInputContext *webm_ctx,
 
   vpx_ctx->framerate.denominator = 0;
   vpx_ctx->framerate.numerator = 0;
-  vpx_ctx->width = video_track->GetWidth();
-  vpx_ctx->height = video_track->GetHeight();
+  vpx_ctx->width = static_cast<uint32_t>(video_track->GetWidth());
+  vpx_ctx->height = static_cast<uint32_t>(video_track->GetHeight());
 
   get_first_cluster(webm_ctx);