Commit 58a94a8e authored by hpi1's avatar hpi1

Hide warning "conversion from 'int64_t' to 'int', possible loss of data"

parent b9191377
......@@ -1721,9 +1721,8 @@ static int _bd_read(BLURAY *bd, unsigned char *buf, int len)
uint64_t angle_pos;
angle_pos = (uint64_t)bd->angle_change_pkt * 192L;
if (angle_pos - st->clip_pos < size)
{
size = angle_pos - st->clip_pos;
if (angle_pos - st->clip_pos < size) {
size = (unsigned int)(angle_pos - st->clip_pos);
}
}
}
......
......@@ -72,9 +72,9 @@ static int64_t _stream_read(BD_FILE_H *fp, uint8_t *buf, int64_t size)
}
if (st->bdplus) {
if (libbdplus_fixup(st->bdplus, buf, size) < 0) {
if (libbdplus_fixup(st->bdplus, buf, (int)size) < 0) {
/* there's no way to verify if the stream was decoded correctly */
}
}
}
return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment