]> git.sesse.net Git - ffmpeg/commit
huffyuv: assign correct per-thread avctx pointer to HYuvContext::avctx.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 4 Apr 2017 02:28:22 +0000 (22:28 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 5 Apr 2017 19:36:53 +0000 (15:36 -0400)
commit7c7e7c44a6eb68eca861e45cb2ce78f582b12c69
tree3c26c9fd67771446908c305c05d637fea8443743
parentf3d8e0d369456113d1223cdf77072b52fc79eceb
huffyuv: assign correct per-thread avctx pointer to HYuvContext::avctx.

Fixes the following tsan warning when running fate-vsynth_lena-ffvhuff:

WARNING: ThreadSanitizer: data race (pid=6484)
  Write of size 8 at 0x7d64000154b8 by main thread (mutexes: write M1331):
    #0 update_context_from_user src/libavcodec/pthread_frame.c:331 (ffmpeg+0x000000dca887)
[..]
  Previous read of size 8 at 0x7d64000154b8 by thread T2 (mutexes: write M1334):
    #0 draw_slice src/libavcodec/huffyuvdec.c:857 (ffmpeg+0x000000bcc86f)
libavcodec/huffyuvdec.c