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.
This commit is contained in:
parent
eddfb57210
commit
ff35aa8ca4
2 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue