mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
flacdec: remove dead code
For 8 bit width, we always have depth==gdepth==width==8. Coverity 1139678
This commit is contained in:
parent
0253db6d36
commit
14ceb5727c
1 changed files with 4 additions and 12 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue