mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
WebPMuxSetChunk: remove unused variable
and unnecessary call to ChunkGetIndexFromFourCC() Change-Id: Ic1ed53750a3be43df827a6fb9a4b9ff3eb25c6c7
This commit is contained in:
parent
a03c3516cb
commit
05db0572f8
@ -193,14 +193,12 @@ static WebPMuxError MuxDeleteAllNamedData(WebPMux* const mux, uint32_t tag) {
|
||||
|
||||
WebPMuxError WebPMuxSetChunk(WebPMux* mux, const char fourcc[4],
|
||||
const WebPData* chunk_data, int copy_data) {
|
||||
CHUNK_INDEX idx;
|
||||
uint32_t tag;
|
||||
WebPMuxError err;
|
||||
if (mux == NULL || fourcc == NULL || chunk_data == NULL ||
|
||||
chunk_data->bytes == NULL || chunk_data->size > MAX_CHUNK_PAYLOAD) {
|
||||
return WEBP_MUX_INVALID_ARGUMENT;
|
||||
}
|
||||
idx = ChunkGetIndexFromFourCC(fourcc);
|
||||
tag = ChunkGetTagFromFourCC(fourcc);
|
||||
|
||||
// Delete existing chunk(s) with the same 'fourcc'.
|
||||
|
Loading…
Reference in New Issue
Block a user