diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-01-04 23:17:23 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-02-08 19:14:04 +0000 |
commit | 760f1a7727583e07efb1d4b0d8e28a1dd2c54a93 (patch) | |
tree | 852fea0bb100cfa40c33923010baf648406aafef /libavcodec/vaapi_encode.h | |
parent | 37de9ce713ebb65d8b040f4f83ba7542f0754485 (diff) | |
download | ffmpeg-760f1a7727583e07efb1d4b0d8e28a1dd2c54a93.tar.gz |
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)
Diffstat (limited to 'libavcodec/vaapi_encode.h')
-rw-r--r-- | libavcodec/vaapi_encode.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h index cc05ac8298..7db219186e 100644 --- a/libavcodec/vaapi_encode.h +++ b/libavcodec/vaapi_encode.h @@ -190,11 +190,9 @@ typedef struct VAAPIEncodeContext { int64_t ts_ring[MAX_REORDER_DELAY * 3]; // Frame type decision. - int i_per_idr; int p_per_i; int b_per_p; - int idr_counter; - int i_counter; + int gop_counter; int p_counter; int end_of_stream; |