aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/midivid.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-03 02:57:18 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-09 04:06:31 +0100
commit505d4de064aff879674d0670cf1c96ca46545da3 (patch)
treeff628be60c33104cdba788378f172f209c9d86ed /libavcodec/midivid.c
parent69aeba8a19ac2fa6e1c9bdfb19229b513f314bb1 (diff)
downloadffmpeg-505d4de064aff879674d0670cf1c96ca46545da3.tar.gz
avcodec/[e]ac3enc: Make encoders init-threadsafe, fix race
ff_eac3_exponent_init() set values twice when initializing a static table; ergo the initialization code must not run concurrently with a running EAC-3 encoder. Yet this code is executed every time an EAC-3 encoder is initialized. So use ff_thread_once() for this and also for a similar initialization performed for all AC-3 encoders to make them all init-threadsafe. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/midivid.c')
0 files changed, 0 insertions, 0 deletions