diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-15 22:38:28 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-20 04:09:22 +0200 |
commit | 05ccfcb7b0ea326a112b1f769588c07bf0e467be (patch) | |
tree | 574ffd4e010c57d6e81cb1ed0a026419bfdbbd5e /libavfilter/vf_elbg.c | |
parent | d046e76515d8f30e2960e4888478002852bf0209 (diff) |
avcodec/elbg: Merge avpriv_init_elbg() into avpriv_do_elbg()
These functions are always called directly after another with
the exact same arguments. This avoids exporting a symbol;
it also avoids having to perform two calls for every caller.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_elbg.c')
-rw-r--r-- | libavfilter/vf_elbg.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c index 8f97465f12..bf78030ffe 100644 --- a/libavfilter/vf_elbg.c +++ b/libavfilter/vf_elbg.c @@ -163,9 +163,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) } /* compute the codebook */ - avpriv_init_elbg(elbg->codeword, NB_COMPONENTS, elbg->codeword_length, - elbg->codebook, elbg->codebook_length, elbg->max_steps_nb, - elbg->codeword_closest_codebook_idxs, &elbg->lfg); avpriv_do_elbg(elbg->codeword, NB_COMPONENTS, elbg->codeword_length, elbg->codebook, elbg->codebook_length, elbg->max_steps_nb, elbg->codeword_closest_codebook_idxs, &elbg->lfg); |