From 2502e13b073370edd62451808ed286f2d7d7a196 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 25 May 2020 14:41:33 +0100 Subject: opusenc: add apply_phase_inv option By popular request. Does the same as in libopusenc. --- libavcodec/opus_pvq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/opus_pvq.c') diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c index 9c21d67298..a4ab7c46eb 100644 --- a/libavcodec/opus_pvq.c +++ b/libavcodec/opus_pvq.c @@ -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; -- cgit v1.2.3