Commit e4924f2c authored by Mathis Rosenhauer's avatar Mathis Rosenhauer Committed by Thomas Jahns

Only copy options actually set

parent 2e015ff3
......@@ -18,7 +18,8 @@ static int convert_options(int sz_opts)
co[SZ_NN_OPTION_MASK] = AEC_DATA_PREPROCESS;
for (i = 1; i < NOPTS; i <<= 1)
opts |= co[i];
if (sz_opts & i)
opts |= co[i];
return opts;
}
......@@ -101,7 +102,7 @@ static size_t remove_padding(void *buf, size_t total,
j -= padding_size;
memcpy((char *)buf + j, (char *)buf + i, pixel_size);
}
if ((i % (line_size + padding_size)) == 0)
if (i % (line_size + padding_size) == 0)
j -= padding_size;
return j;
}
......
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