Fix another multithreaded encoder loopfilter race condition
authorAttila Nagy <attilanagy@google.com>
Tue, 22 May 2012 11:19:10 +0000 (14:19 +0300)
committerJohn Koleszar <jkoleszar@google.com>
Wed, 23 May 2012 20:50:59 +0000 (13:50 -0700)
commit4890853010847479bb88a43829824649a547c478
tree88e4fbbeab2f8247ac6c12deee25a5148c207d92
parentcf0970157dd7be238a8e7cc4917b22b3834ebd56
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