mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
multithread cruncher: only copy stats when picture->stats != NULL
BUG=webp:336 Change-Id: I6dfbbdcf61a6cb455f6cbf3dcd7f4c46578f42aa
This commit is contained in:
@ -1796,7 +1796,9 @@ WebPEncodingError VP8LEncodeStream(const WebPConfig* const config,
|
||||
}
|
||||
// This line is here and not in the param initialization above to remove a
|
||||
// Clang static analyzer warning.
|
||||
memcpy(&stats_side, picture->stats, sizeof(stats_side));
|
||||
if (picture->stats != NULL) {
|
||||
memcpy(&stats_side, picture->stats, sizeof(stats_side));
|
||||
}
|
||||
// This line is only useful to remove a Clang static analyzer warning.
|
||||
params_side.err_ = VP8_ENC_OK;
|
||||
worker_interface->Launch(&worker_side);
|
||||
|
Reference in New Issue
Block a user