]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/opus_pvq.c
avcodec: Constify all the AVCodecParsers
[ffmpeg] / libavcodec / opus_pvq.c
index 9c21d6729804b5c331263701540f7fb23d3a3a60..a4ab7c46ebb7382975081e9423cd81ee47bbf231 100644 (file)
@@ -627,7 +627,7 @@ static av_always_inline uint32_t quant_band_template(CeltPVQ *pvq, CeltFrame *f,
             }
         } else if (stereo) {
             if (quant) {
-                inv = itheta > 8192;
+                inv = f->apply_phase_inv ? itheta > 8192 : 0;
                  if (inv) {
                     for (i = 0; i < N; i++)
                        Y[i] *= -1;