From 31fb029f2d9e7facb5eb2899b0c8bdb16df17997 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 19 Feb 2015 22:41:41 +0100 Subject: [PATCH] avcodec/dss_sp: de-obfuscate index inversion Signed-off-by: Michael Niedermayer --- libavcodec/dss_sp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c index 6f24b4482a..462418bca4 100644 --- a/libavcodec/dss_sp.c +++ b/libavcodec/dss_sp.c @@ -378,7 +378,7 @@ static void dss_sp_unpack_coeffs(DssSpContext *p, const uint8_t *src) if (C72_binomials[index] <= combined_pulse_pos) { combined_pulse_pos -= C72_binomials[index]; - fparam->sf[subframe_idx].pulse_pos[(index ^ 7) - 1] = i; + fparam->sf[subframe_idx].pulse_pos[6 - index] = i; if (!index) break;