vaapi_encode: Fix GOP sizing
authorMark Thompson <sw@jkqxz.net>
Wed, 4 Jan 2017 23:17:23 +0000 (23:17 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 11 Jan 2017 23:03:58 +0000 (23:03 +0000)
commit37fab0661a760b2a9d727939d72e629acee1a6ef
treebf7ef5490076cec30b3b4921f257c50116391b5e
parentbd6496fa07e32fd09ceb79404f9af43df959bcb2
vaapi_encode: Fix GOP sizing

This change makes the configured GOP size be respected exactly -
previously the value could be exceeded slightly due to flaws in the
frame type selection logic.
libavcodec/vaapi_encode.c
libavcodec/vaapi_encode.h