[FFmpeg-cvslog] avcodec/dss_sp: de-obfuscate index inversion

Michael Niedermayer git at videolan.org
Thu Feb 19 23:02:18 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Feb 19 22:41:41 2015 +0100| [31fb029f2d9e7facb5eb2899b0c8bdb16df17997] | committer: Michael Niedermayer

avcodec/dss_sp: de-obfuscate index inversion

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31fb029f2d9e7facb5eb2899b0c8bdb16df17997
---

 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 6f24b44..462418b 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;



More information about the ffmpeg-cvslog mailing list