Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-05-25 16:41:33 +0300
committerLynne <dev@lynne.ee>2020-05-26 12:52:12 +0300
commit2502e13b073370edd62451808ed286f2d7d7a196 (patch)
treeeddc662ca386257b483c868e10214a9f6222f018 /libavcodec/opus_pvq.c
parentc0344cbfb0a11bf76860a660c3662cf469449e24 (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.c2
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;