Merge "simple_decoder.c: Silence MSVC data loss warning."
This commit is contained in:
commit
68d49038c8
@ -134,7 +134,7 @@ int main(int argc, char **argv) {
|
|||||||
size_t frame_size = 0;
|
size_t frame_size = 0;
|
||||||
const unsigned char *frame = vpx_video_reader_get_frame(reader,
|
const unsigned char *frame = vpx_video_reader_get_frame(reader,
|
||||||
&frame_size);
|
&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.");
|
die_codec(&codec, "Failed to decode frame.");
|
||||||
|
|
||||||
while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) {
|
while ((img = vpx_codec_get_frame(&codec, &iter)) != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user