diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-19 19:13:28 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-19 19:19:08 +0200 |
commit | 32129d64953da1502a200e850ac0a559791824b9 (patch) | |
tree | a1958b0a0793e3d0bcc1f39cb31c1cd37599da8c /libavcodec/vorbisdec.c | |
parent | 5c15cb138eb1292bc16e64d3cb39953f1c09ce97 (diff) | |
download | ffmpeg-32129d64953da1502a200e850ac0a559791824b9.tar.gz |
avcodec/vorbisdec: Move ff_vorbis_inverse_coupling() to vorbisdsp.c
Only used there. Also make it static.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r-- | libavcodec/vorbisdec.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 72b8e8e15b..0d04e7c2c4 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -1579,29 +1579,6 @@ static inline int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, } } -void ff_vorbis_inverse_coupling(float *mag, float *ang, ptrdiff_t blocksize) -{ - for (ptrdiff_t i = 0; i < blocksize; i++) { - float angi = ang[i], magi = mag[i]; - - if (magi > 0.f) { - if (angi > 0.f) { - ang[i] = magi - angi; - } else { - ang[i] = magi; - mag[i] = magi + angi; - } - } else { - if (angi > 0.f) { - ang[i] = magi + angi; - } else { - ang[i] = magi; - mag[i] = magi - angi; - } - } - } -} - // Decode the audio packet using the functions above static int vorbis_parse_audio_packet(vorbis_context *vc, float **floor_ptr) |