From 937269d02e4063f6976bf47417be6ce50114201b Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 16 Apr 2014 16:59:43 +0100 Subject: [PATCH] flacparse: remove dead code The block_size == 0 was shortcut earlier, and the variable is not modified in the meantime. Coverity 206097 --- gst/audioparsers/gstflacparse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 9f3347f..cb7a39e 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -505,9 +505,7 @@ gst_flac_parse_frame_header_is_valid (GstFlacParse * flacparse, } /* calculate real blocksize from the blocksize index */ - if (block_size == 0) { - goto error; - } else if (block_size == 6) { + if (block_size == 6) { if (!gst_bit_reader_get_bits_uint16 (&reader, &block_size, 8)) goto need_more_data; block_size++; -- 2.7.4