aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorMans Rullgard2012-07-05 12:25:40 +0100
committerMans Rullgard2012-07-19 10:21:32 +0100
commitbf1cf4d5a5c73942b193ccf4af75dd851f4f4fd2 (patch)
tree774503a4fc7a5ee51ed343abbcd447a95cc74b58 /libavcodec/flacdec.c
parent9f97af2688e1cbb6cca4ea50e3dece3bc8f5bb97 (diff)
flacdec: reverse lpc coeff order, simplify filter
Reversing the lpc coefficient order simplifies indexing in the filter. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index 53070a348c..8cbd389d47 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -321,7 +321,7 @@ static int decode_subframe_lpc(FLACContext *s, int channel, int pred_order,
}
for (i = 0; i < pred_order; i++) {
- coeffs[i] = get_sbits(&s->gb, coeff_prec);
+ coeffs[pred_order - i - 1] = get_sbits(&s->gb, coeff_prec);
}
if (decode_residuals(s, channel, pred_order) < 0)