[FFmpeg-devel] [mpegaudio] Use ff_thread_once for fixed, float table init.

Michael Niedermayer michael at niedermayer.cc
Sat Nov 18 12:50:23 EET 2017


On Fri, Nov 17, 2017 at 02:52:30PM -0800, Dale Curtis wrote:
> These tables are static so they should only be initialized once
> instead of on every call to ff_mpadsp_init().
> 
> Signed-off-by: Dale Curtis <dalecurtis at chromium.org>

>  mpegaudiodsp.c |    8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 9709276718a21c3995476e37d18279152b760adf  once_table_init_v1.patch
> From 70ffbeb41f0432c72701f6147385e9aa47bf8419 Mon Sep 17 00:00:00 2001
> From: Dale Curtis <dalecurtis at chromium.org>
> Date: Fri, 17 Nov 2017 14:51:09 -0800
> Subject: [PATCH] [mpegaudio] Use ff_thread_once for fixed, float table init.
> 
> These tables are static so they should only be initialized once
> instead of on every call to ff_mpadsp_init().
> 
> Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
> ---
>  libavcodec/mpegaudiodsp.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

will apply

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171118/44b87b52/attachment.sig>


More information about the ffmpeg-devel mailing list