diff options
author | Lynne <dev@lynne.ee> | 2020-05-25 14:41:33 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2020-05-26 10:52:12 +0100 |
commit | 2502e13b073370edd62451808ed286f2d7d7a196 (patch) | |
tree | eddc662ca386257b483c868e10214a9f6222f018 /libavcodec/opus_pvq.c | |
parent | c0344cbfb0a11bf76860a660c3662cf469449e24 (diff) |
opusenc: add apply_phase_inv option
By popular request.
Does the same as in libopusenc.
Diffstat (limited to 'libavcodec/opus_pvq.c')
-rw-r--r-- | libavcodec/opus_pvq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |