mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-16 13:56:47 +02: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],
|
WebPMuxError WebPMuxSetChunk(WebPMux* mux, const char fourcc[4],
|
||||||
const WebPData* chunk_data, int copy_data) {
|
const WebPData* chunk_data, int copy_data) {
|
||||||
CHUNK_INDEX idx;
|
|
||||||
uint32_t tag;
|
uint32_t tag;
|
||||||
WebPMuxError err;
|
WebPMuxError err;
|
||||||
if (mux == NULL || fourcc == NULL || chunk_data == NULL ||
|
if (mux == NULL || fourcc == NULL || chunk_data == NULL ||
|
||||||
chunk_data->bytes == NULL || chunk_data->size > MAX_CHUNK_PAYLOAD) {
|
chunk_data->bytes == NULL || chunk_data->size > MAX_CHUNK_PAYLOAD) {
|
||||||
return WEBP_MUX_INVALID_ARGUMENT;
|
return WEBP_MUX_INVALID_ARGUMENT;
|
||||||
}
|
}
|
||||||
idx = ChunkGetIndexFromFourCC(fourcc);
|
|
||||||
tag = ChunkGetTagFromFourCC(fourcc);
|
tag = ChunkGetTagFromFourCC(fourcc);
|
||||||
|
|
||||||
// Delete existing chunk(s) with the same 'fourcc'.
|
// Delete existing chunk(s) with the same 'fourcc'.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user