vp8: avoid race condition on segment map.
authorAaron Colwell <acolwell@chromium.org>
Mon, 19 Mar 2012 03:03:00 +0000 (20:03 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 19 Mar 2012 20:49:34 +0000 (13:49 -0700)
commit30011bf20109eef1a0f9ee949b19f9998ad88663
tree0203aeb1506b9283453c47dd84ea840dedd19258
parent18ba94c6f9e08fc71cb5c4944bc6e4e1196e4634
vp8: avoid race condition on segment map.

This change avoids accessing the segment map of the previous frame if
segmentation is not enabled for the current frame. The caller of
decode_mb_mode() only calls ff_thread_await_progress() on the reference
segmentation index array if segmentation is enabled, so Chromium's TSAN
will report a race when accessing this data while segmentation is not
enabled.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/vp8.c