Fix to golden update in cyclic_refresh.
authorMarco <marpan@chromium.org>
Mon, 24 Aug 2015 20:00:50 +0000 (13:00 -0700)
committerMarco <marpan@chromium.org>
Fri, 28 Aug 2015 17:22:09 +0000 (10:22 -0700)
commitbc0a97431072afdad009930c186a71c129bdea2c
treebb568b33fc3aa226f55b8a94f9e82a3ad058eb2d
parent6201a256f48c7fccbe2c1f7778ad75b0693ac6d9
Fix to golden update in cyclic_refresh.

For one pass CBR: only check for updating refresh_golden
if ext_refresh_frame_flags_pending is not set (i.e., == 0).
And move the resetting of ext_refresh_frame_flags_pending = 0
down to after the encode_loop (and account for dropped frames).

This is to prevent changing refresh_golden flga when the user
supplies the reference/update flags.

Change-Id: I4d87b3e705ba43f243667e367503b585c61e2a54
vp9/encoder/vp9_encoder.c