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)
Showing the changes to libavcodec/vaapi_encode.h (1 of 2 files). Show all
Unified · Split
| @@ -155,6 +155,10 @@ typedef struct VAAPIEncodeContext { · 154 unmodified lines | |||
| 155 | VAEncMiscParameterBuffer misc; | 155 | VAEncMiscParameterBuffer misc; |
| 156 | VAEncMiscParameterHRD hrd; | 156 | VAEncMiscParameterHRD hrd; |
| 157 | } hrd_params; | 157 | } hrd_params; |
| 158 | struct { | ||
| 159 | VAEncMiscParameterBuffer misc; | ||
| 160 | VAEncMiscParameterFrameRate fr; | ||
| 161 | } fr_params; | ||
| 158 | 162 | ||
| 159 | // Per-sequence parameter structure (VAEncSequenceParameterBuffer*). | 163 | // Per-sequence parameter structure (VAEncSequenceParameterBuffer*). |
| 160 | void *codec_sequence_params; | 164 | void *codec_sequence_params; |