Fix another multithreaded encoder loopfilter race condition
authorAttila Nagy <attilanagy@google.com>
Tue, 22 May 2012 11:19:10 +0000 (14:19 +0300)
committerAttila Nagy <attilanagy@google.com>
Wed, 23 May 2012 12:19:48 +0000 (15:19 +0300)
commitea392d47142bfa6d2decf622487ca39b9d92e6f2
tree4999034d2cd46ac2e0a6318e7721e1b7ae04b601
parent282b58006b97b0b35c3a20c55545251161aa5f35
Fix another multithreaded encoder loopfilter race condition

After a key frame encoding, the frame type could change while
filtering is still going on. Pass the frame type as parameter to the
loopfilter function and don't read it from common storage.

vp8cx_set_alt_lf_level has to be done before packing the stream.
Currently alt_lf_level is not used so there hasn't been any visible
problem here.

Change-Id: Ia114162158cd833c2b16e3b89303cc9c91f19165
vp8/common/loopfilter.c
vp8/common/loopfilter.h
vp8/decoder/onyxd_if.c
vp8/encoder/onyx_if.c