Fix decimation_count in drop_frame
authorYunqing Wang <yunqingwang@google.com>
Thu, 7 Jun 2012 17:57:21 +0000 (13:57 -0400)
committerYunqing Wang <yunqingwang@google.com>
Thu, 7 Jun 2012 18:47:37 +0000 (14:47 -0400)
commit53d92e61ccfb3e7b0ad88c05f732101cc5c5b457
tree65f561431fe6bae3c3276163b75971ef923d0289
parent9904c28f5b421592db61b337cd7700544820ba26
Fix decimation_count in drop_frame

Frame dropping decision is made by evaluating both current frame
and next frame's buffer_level. If both buffer_levels are less
than drop_mark, next frame is dropped. When frame dropping is
over, namely, buffer_level becomes normal again, we need to
reset decimation_count to 0.

Change-Id: Iae182612e61e0da367fbd43afdc90738d975d1a3
vp8/encoder/onyx_if.c