diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-27 20:46:06 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-31 22:04:23 +0100 |
commit | 3526f3856abc7586c98ea98cad04abf7696e89e7 (patch) | |
tree | 1337259ade3009e75c85e08a656d88a93d9a5435 /libavcodec/x86/h264dsp_init.c | |
parent | df56a1060c7de9b48518d6ac08fa3db6569fc266 (diff) | |
download | ffmpeg-3526f3856abc7586c98ea98cad04abf7696e89e7.tar.gz |
avcodec/aacsbr_template: Remove pointless runtime initialization
The sbr_qmf_window_us array is basically symmetric around its middle
element and therefore the latter half is currently initialized from the
first half at runtime. Yet because the first half is initialized, the
array can't be placed in .bss at all, so that one gains nothing from not
already initializing the whole array statically. Therefore this commit
does exactly this.
(There are two exceptions to the symmetry: Elements 384 and 512 are the
negations of their mirror element; for the fixed-point decoder, Q31(-x)
does not equal -Q31(x). In order to keep the array exactly the same, the
latter form has been used for these two elements.)
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/x86/h264dsp_init.c')
0 files changed, 0 insertions, 0 deletions