diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-27 21:11:45 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-11-04 08:15:24 -0500 |
commit | fd0bf457b734beee6715254ea264118dc4993507 (patch) | |
tree | 5974340246a5e8e90f711933dc018c81880ee1ee /libavutil/macros.h | |
parent | bc55cec57e5d804f8cc9596a6f3878c1bda0ae56 (diff) | |
download | ffmpeg-fd0bf457b734beee6715254ea264118dc4993507.tar.gz |
avcodec/aacsbr_template: replace qsort with AV_QSORT
When sbr->reset is set in encode_frame, a bunch of qsort calls might get made.
Thus, there is the potential of calling qsort whenever the spectral
contents change.
AV_QSORT is substantially faster due to the inlining of the comparison callback.
Thus, the increase in performance should be worth the increase in binary size.
Tested with FATE.
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavutil/macros.h')
0 files changed, 0 insertions, 0 deletions