Commit 52c7427e authored by Martin Storsjö's avatar Martin Storsjö

annexb: Cast size_t to int before adding to an int

This fixes these warnings with MSVC:
warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
parent c99c27ea
......@@ -78,7 +78,7 @@ static int annexb_probe(const uint8_t *data) {
&obu_size, &type, 1);
if (ret < 0 || type != DAV1D_OBU_TD || obu_size > 0)
return 0;
cnt += obu_unit_size;
cnt += (int)obu_unit_size;
// look for first frame and accompanying sequence header
int seq = 0;
......@@ -94,7 +94,7 @@ static int annexb_probe(const uint8_t *data) {
&obu_size, &type, 1);
if (ret < 0)
return 0;
cnt += obu_unit_size;
cnt += (int)obu_unit_size;
switch (type) {
case DAV1D_OBU_SEQ_HDR:
......
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