aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/flacdec.c
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc-at-google.com@ffmpeg.org>2016-03-01 10:11:53 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2016-03-01 13:53:47 -0500
commit4845f0720e38c5baab7baad52bfce1451f1c1639 (patch)
treed499e3f085f3efd2ee4dd3f82f9cb13cfce2abb1 /libavformat/flacdec.c
parentf1148390d7ed0444f3204d10277d09cc8d034e65 (diff)
downloadffmpeg-4845f0720e38c5baab7baad52bfce1451f1c1639.tar.gz
Move the |die| member of FrameThreadContext to PerThreadContext.
This fixes a data race warning by ThreadSanitizer. FrameThreadContext.die is read by all the worker threads but is not protected by any mutex. Move it to PerThreadContext so that each worker thread reads its own copy of |die|, which can then be protected with PerThreadContext.mutex. Signed-off-by: Wan-Teh Chang <wtc@google.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/flacdec.c')
0 files changed, 0 insertions, 0 deletions