diff options
author | Mark Thompson <sw@jkqxz.net> | 2016-11-29 22:12:46 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-02-08 19:14:05 +0000 |
commit | be6546a4ff592785d039df6cbdd7659781d30b2c (patch) | |
tree | a9036eaa59eed96d3dd9a15dc1b3a59c1ff5457c /libavcodec/vaapi_encode.h | |
parent | 2201c02e6dc9f9652a8e27dec194915f05954ad0 (diff) | |
download | ffmpeg-be6546a4ff592785d039df6cbdd7659781d30b2c.tar.gz |
vaapi_encode: Pass framerate parameters to driver
Only do this when building for a recent VAAPI version - initial
driver implementations were confused about the interpretation of the
framerate field, but hopefully this will be consistent everywhere
once 0.40.0 is released.
(cherry picked from commit ff35aa8ca4069bf1543adeec4c28e51e4a012eee)
Diffstat (limited to 'libavcodec/vaapi_encode.h')
-rw-r--r-- | libavcodec/vaapi_encode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h index 2c1b7cf7c4..0edf27e4cb 100644 --- a/libavcodec/vaapi_encode.h +++ b/libavcodec/vaapi_encode.h @@ -155,6 +155,10 @@ typedef struct VAAPIEncodeContext { VAEncMiscParameterBuffer misc; VAEncMiscParameterHRD hrd; } hrd_params; + struct { + VAEncMiscParameterBuffer misc; + VAEncMiscParameterFrameRate fr; + } fr_params; // Per-sequence parameter structure (VAEncSequenceParameterBuffer*). void *codec_sequence_params; |