Commit 14ceb572 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

flacdec: remove dead code

For 8 bit width, we always have depth==gdepth==width==8.

Coverity 1139678
parent 0253db6d
...@@ -670,18 +670,10 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame, ...@@ -670,18 +670,10 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
gint8 *outbuffer = (gint8 *) map.data; gint8 *outbuffer = (gint8 *) map.data;
gint *reorder_map = flacdec->channel_reorder_map; gint *reorder_map = flacdec->channel_reorder_map;
if (gdepth != depth) { g_assert (gdepth == 8 && depth == 8);
for (i = 0; i < samples; i++) { for (i = 0; i < samples; i++) {
for (j = 0; j < channels; j++) { for (j = 0; j < channels; j++) {
*outbuffer++ = *outbuffer++ = (gint8) buffer[reorder_map[j]][i];
(gint8) (buffer[reorder_map[j]][i] << (gdepth - depth));
}
}
} else {
for (i = 0; i < samples; i++) {
for (j = 0; j < channels; j++) {
*outbuffer++ = (gint8) buffer[reorder_map[j]][i];
}
} }
} }
} else if (width == 16) { } else if (width == 16) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment