From 50ec3ab79026af767a314de5c20651341dfa7a2b Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 18 May 2017 19:02:16 +0000 Subject: [PATCH] muxread: remove unreachable code IDX_UNKNOWN chunks are handled separately in WebPMuxGetChunk() Change-Id: Iaa0d3a1cd1080264c27671637551f52f71d73b07 --- src/mux/muxread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux/muxread.c b/src/mux/muxread.c index ce21d59f..07c27ef9 100644 --- a/src/mux/muxread.c +++ b/src/mux/muxread.c @@ -43,7 +43,7 @@ static WebPMuxError MuxGet(const WebPMux* const mux, CHUNK_INDEX idx, SWITCH_ID_LIST(IDX_ANIM, mux->anim_); SWITCH_ID_LIST(IDX_EXIF, mux->exif_); SWITCH_ID_LIST(IDX_XMP, mux->xmp_); - SWITCH_ID_LIST(IDX_UNKNOWN, mux->unknown_); + assert(idx != IDX_UNKNOWN); return WEBP_MUX_NOT_FOUND; } #undef SWITCH_ID_LIST