summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/codecs/libffmpegFLAC
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-03-02 19:47:07 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2021-03-02 19:47:07 -0500
commit118191479d95793d9b13d9f63058490c30366260 (patch)
treedb6236c12b059192c8b451f7c54addca50089686 /lib/rbcodec/codecs/libffmpegFLAC
parent2252bde144262cd37557a96182cf6b94116608d6 (diff)
downloadrockbox-118191479d95793d9b13d9f63058490c30366260.tar.gz
rockbox-118191479d95793d9b13d9f63058490c30366260.tar.bz2
rockbox-118191479d95793d9b13d9f63058490c30366260.zip
Nudge flac towards upstream FS#13266 -- Fix the Yellow still?
Change-Id: I76056b1a682db055857d759d2ebffae111a8a4c0
Diffstat (limited to 'lib/rbcodec/codecs/libffmpegFLAC')
-rw-r--r--lib/rbcodec/codecs/libffmpegFLAC/decoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbcodec/codecs/libffmpegFLAC/decoder.c b/lib/rbcodec/codecs/libffmpegFLAC/decoder.c
index b3cd79b6c5..c84973014f 100644
--- a/lib/rbcodec/codecs/libffmpegFLAC/decoder.c
+++ b/lib/rbcodec/codecs/libffmpegFLAC/decoder.c
@@ -302,9 +302,9 @@ static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order,
return -7;
}
- for (i = 0; i < pred_order; i++)
+ for (j = 0; i < pred_order; j++)
{
- coeffs[i] = get_sbits(&s->gb, coeff_prec);
+ coeffs[j] = get_sbits(&s->gb, coeff_prec);
}
if (decode_residuals(s, decoded, pred_order) < 0)
@@ -312,11 +312,11 @@ static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order,
if ((s->bps + coeff_prec + av_log2(pred_order)) <= 32) {
#if defined(CPU_COLDFIRE)
- (void)sum, j;
+ (void)sum;
lpc_decode_emac(s->blocksize - pred_order, qlevel, pred_order,
decoded + pred_order, coeffs);
#elif defined(CPU_ARM)
- (void)sum, j;
+ (void)sum;
lpc_decode_arm(s->blocksize - pred_order, qlevel, pred_order,
decoded + pred_order, coeffs);
#else