lagarith: assign correct per-thread value to LagarithContext::avctx.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 29 Mar 2017 00:11:43 +0000 (20:11 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 31 Mar 2017 12:26:24 +0000 (08:26 -0400)
commit081c21ca55d72921125848c8c2c191a6ff8b5f88
tree4db8c3b9030371b3c21e32e9faa24b4a542abc74
parent73f863d751df84db7a0ca1bd83cdff1b95dc94dd
lagarith: assign correct per-thread value to LagarithContext::avctx.

This fixes race conditions reported by tsan in fate-lagarith. The races
were because each thread's LagarithContext::avctx was set to the first
thread's AVCodecContext.
libavcodec/lagarith.c