mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Compare commits
2 Commits
25e17c686f
...
74cd026edb
Author | SHA1 | Date | |
---|---|---|---|
|
74cd026edb | ||
|
a027aa93de |
@ -76,9 +76,8 @@ int CropOrScale(WebPPicture* const pic, const CropOrScaleParams& params) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else // defined(WEBP_REDUCE_SIZE)
|
#else // defined(WEBP_REDUCE_SIZE)
|
||||||
(void)data;
|
(void)pic;
|
||||||
(void)size;
|
(void)params;
|
||||||
(void)bit_pos;
|
|
||||||
#endif // !defined(WEBP_REDUCE_SIZE)
|
#endif // !defined(WEBP_REDUCE_SIZE)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
void MuxDemuxApiTest(std::string_view data_in, bool mux) {
|
void MuxDemuxApiTest(std::string_view data_in, bool use_mux_api) {
|
||||||
const size_t size = data_in.size();
|
const size_t size = data_in.size();
|
||||||
WebPData webp_data;
|
WebPData webp_data;
|
||||||
WebPDataInit(&webp_data);
|
WebPDataInit(&webp_data);
|
||||||
@ -34,7 +34,7 @@ void MuxDemuxApiTest(std::string_view data_in, bool mux) {
|
|||||||
// Extracted chunks and frames are not processed or decoded,
|
// Extracted chunks and frames are not processed or decoded,
|
||||||
// which is already covered extensively by the other fuzz targets.
|
// which is already covered extensively by the other fuzz targets.
|
||||||
|
|
||||||
if (mux) {
|
if (use_mux_api) {
|
||||||
// Mux API
|
// Mux API
|
||||||
WebPMux* mux = WebPMuxCreate(&webp_data, size & 2);
|
WebPMux* mux = WebPMuxCreate(&webp_data, size & 2);
|
||||||
if (!mux) return;
|
if (!mux) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user