flacparse: remove dead code
The block_size == 0 was shortcut earlier, and the variable is not modified in the meantime. Coverity 206097
This commit is contained in:
parent
2e120c9440
commit
937269d02e
@ -505,9 +505,7 @@ gst_flac_parse_frame_header_is_valid (GstFlacParse * flacparse,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* calculate real blocksize from the blocksize index */
|
/* calculate real blocksize from the blocksize index */
|
||||||
if (block_size == 0) {
|
if (block_size == 6) {
|
||||||
goto error;
|
|
||||||
} else if (block_size == 6) {
|
|
||||||
if (!gst_bit_reader_get_bits_uint16 (&reader, &block_size, 8))
|
if (!gst_bit_reader_get_bits_uint16 (&reader, &block_size, 8))
|
||||||
goto need_more_data;
|
goto need_more_data;
|
||||||
block_size++;
|
block_size++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user