diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-05 23:40:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-10 22:12:02 +0200 |
commit | 3c3712ee2bd9e2ec2d6bd576c5f05e169c36ad5a (patch) | |
tree | 2efe587f1c94ecfbbdd332efa31709909edd2dfc /compat/float | |
parent | a1b01483665716a617e454414be14a749f334f63 (diff) | |
download | ffmpeg-3c3712ee2bd9e2ec2d6bd576c5f05e169c36ad5a.tar.gz |
avcodec/wmaprodec: Make decoders init-threadsafe
In this case this actually fixes a potential data race: The static VLC
tables were reinitialized every time an AVCodecContext has been
initialized; while the mutex in avcodec_open2() ensured that the VLCs
could not be initialized concurrently by multiple threads, nothing
guaranteed that these VLCs are not read concurrently (when decoding a
packet with an already initialized AVCodecContext) while another thread
initializes them. This is undefined behaviour despite the values being
written coinciding with the earlier values.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'compat/float')
0 files changed, 0 insertions, 0 deletions