bug where t1 was set to zero but s2 was not in imdct36_standalone.c
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Dec 2021 20:27:35 +0000 (20:27 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Dec 2021 20:27:35 +0000 (20:27 +0000)
media/audio/mp3/imdct36_standalone.c

index be81fd19dcf0082d90cc4d7f91d4f98f80a32b5c..9cf347661ff05fefb53b777e74ab5961d55e7d89 100644 (file)
@@ -155,7 +155,7 @@ void imdct36(float *out, float *buf, float *in, const float *win)
         t0 = tmp[i];
         if (predicate) t1 = tmp[i + 2]; else t1 = 0.0;
         s0 = t1 + t0;
-        if (predicate) s2 = t1 - t0; else t1 = 0.0;
+        if (predicate) s2 = t1 - t0; else s2 = 0.0;
 
         t2 = tmp[i + 1];
         if (predicate) t3 = tmp[i + 3]; else t3 = 0.0;