mirror of https://github.com/FFmpeg/FFmpeg.git
The SpeedHQ decoder uses and initializes a RLTable's VLC, yet it also initializes other parts of the RLTable that it does not use. This has downsides besides being wasteful: Because the SpeedHQ encoder also initializes these additional fields, there is a potential for data races (and therefore undefined behaviour). In fact, removing the superfluous initializations from the decoder automatically makes both the decoder and the encoder init-threadsafe. This commit does so. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>pull/362/head
parent
8ab2bb81b2
commit
b05631f7b9
2 changed files with 2 additions and 4 deletions
Loading…
Reference in new issue