a52dec: fix race in liba52dec lookup table initialization
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 2 Apr 2015 16:24:05 +0000 (17:24 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Apr 2015 08:57:38 +0000 (09:57 +0100)
commitf529481b3da32d9414219784bcee4f042e1dc86c
tree46fa569b00e6e03db651f7823411a5566631e593
parentca5fd568624366942d3548003ddc49b7ac2a3ea6
a52dec: fix race in liba52dec lookup table initialization

a52_init initializes the IMDCT global state as well as creating
a new state. When two A52 decoders are created (eg, when two AC3
tracks are contained in a video), calls to a52_init may happen
at the same time, and the IMDCT initialization is not reentrant.

https://bugzilla.gnome.org/show_bug.cgi?id=746781
ext/a52dec/gsta52dec.c