avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Sep 2015 11:10:48 +0000 (13:10 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Sep 2015 22:58:46 +0000 (00:58 +0200)
commitdabea74d0e82ea80cd344f630497cafcb3ef872c
treee339303948803b99ee66d75f86cbf9ff9f91285c
parent30ce6fd1069e6e65edae03da162871df896e5283
avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup

The variable is not a constant and can lead to race conditions

Fixes: repro.webm (not reproducable with FFmpeg alone)

Found-by: Dale Curtis <dalecurtis@google.com>
Tested-by: Dale Curtis <dalecurtis@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vp8.c