[FFmpeg-devel] [PATCH] VP8 : Avoid race condition on segment map.

Michael Niedermayer michaelni at gmx.at
Wed Mar 21 02:42:31 CET 2012


On Tue, Mar 06, 2012 at 03:57:13PM -0800, Aaron Colwell wrote:
> Hi,
> 
> This patch fixes a race condition that was detected by Chromium's TSAN
> tool. This change avoids accessing the segment map of the previous frame if
> segmentation is not enabled for the current frame. This is needed because
> if you look at the caller of decode_mb_mode() you'll see that the
> ff_thread_await_progress() call is skipped if segmentation is enabled. This
> means that the current frame doesn't gate its progress on the progress of
> the previous frame. This causes a race on the segment map if the current
> frame's thread happens to progress farther in the frame than the previous
> frame's thread.

has been applied

Thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120321/8a5605a6/attachment.asc>


More information about the ffmpeg-devel mailing list