dnxhd: initialize DNXHDContext::avctx to each thread's respective one.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 28 Mar 2017 23:37:42 +0000 (19:37 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 31 Mar 2017 12:26:23 +0000 (08:26 -0400)
commitf800d6508d7e8fbd8d9777b775d333a4f02112ef
tree8695a03a898bcd20ca79d18eb5e02f8ff2ea95d0
parentef71dc7948322254d1f0fa41218b91f2da0279d9
dnxhd: initialize DNXHDContext::avctx to each thread's respective one.

Otherwise all thread's private contexts have the avctx pointer set to
the AVCodecContext of the first thread, which means all writes to
ctx->avctx->* (in e.g. read_header) are effectively race conditions.

Fixes fate-dnxhd under tsan.
libavcodec/dnxhddec.c