OSDN Git Service

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, 8 Feb 2017 19:14:04 +0000 (19:14 +0000)
commit760f1a7727583e07efb1d4b0d8e28a1dd2c54a93
tree852fea0bb100cfa40c33923010baf648406aafef
parent37de9ce713ebb65d8b040f4f83ba7542f0754485
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.

(cherry picked from commit 37fab0661a760b2a9d727939d72e629acee1a6ef)
libavcodec/vaapi_encode.c
libavcodec/vaapi_encode.h