]> granicus.if.org Git - libvpx/blobdiff - tools_common.c
Clean out more MSVC warnings
[libvpx] / tools_common.c
index 901734e0f3498f297adeb4f34c3bed88f5e9c4bb..8d356af3f54d56b1b6e087ab4705ea39fb22f858 100644 (file)
@@ -392,7 +392,7 @@ void vpx_img_truncate_16_to_8(vpx_image_t *dst, vpx_image_t *src) {
           (uint16_t *)(src->planes[plane] + y * src->stride[plane]);
       uint8_t *p_dst = dst->planes[plane] + y * dst->stride[plane];
       for (x = 0; x < w; x++) {
-        *p_dst++ = *p_src++;
+        *p_dst++ = (uint8_t)(*p_src++);
       }
     }
   }