mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-21 00:09:52 +02:00
cosmetics: remove use of 'sanity' / 'master'
replace with more inclusive terms or remove the comment entirely if the meaning was already clear. Bug: webp:507 Change-Id: Ica3bbf751ebf79f6668df6e6209af770248ff4ca
This commit is contained in:
@ -303,7 +303,7 @@ static int EncodeAlpha(VP8Encoder* const enc,
|
||||
int ok = 1;
|
||||
const int reduce_levels = (quality < 100);
|
||||
|
||||
// quick sanity checks
|
||||
// quick correctness checks
|
||||
assert((uint64_t)data_size == (uint64_t)width * height); // as per spec
|
||||
assert(enc != NULL && pic != NULL && pic->a != NULL);
|
||||
assert(output != NULL && output_size != NULL);
|
||||
@ -375,7 +375,7 @@ static int CompressAlphaJob(void* arg1, void* unused) {
|
||||
filter, effort_level, &alpha_data, &alpha_size)) {
|
||||
return 0;
|
||||
}
|
||||
if (alpha_size != (uint32_t)alpha_size) { // Sanity check.
|
||||
if (alpha_size != (uint32_t)alpha_size) { // Soundness check.
|
||||
WebPSafeFree(alpha_data);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user