]> granicus.if.org Git - libvpx/commit
Simplify the logics in find_next_key_frame
authorangiebird <angiebird@google.com>
Mon, 21 Oct 2019 22:23:46 +0000 (15:23 -0700)
committerangiebird <angiebird@google.com>
Mon, 21 Oct 2019 22:23:46 +0000 (15:23 -0700)
commitf2d91e2c24b4bf15d6eca1829bfab8cc013549dc
treee5f9b50e72df26d0bd3811bb19fec1463eb39824
parent31193de1ccccbcc4e3580613a28340a30ad7e6d4
Simplify the logics in find_next_key_frame

Since the while loop's condition already check
rc->frames_to_key < cpi->oxcf.key_freq,
it impossible to have "frames_to_key >= 2 * cpi->oxcf.key_freq"
and "frames_to_key > cpi->oxcf.key_freq".

Hence, these logics are removed.

Change-Id: I9dfc2ba36e1012718c857fc710036e2d30acd3b8
vp9/encoder/vp9_firstpass.c