Cropping is not supported by VAAPI encode.
Showing the changes to libavcodec/vaapi_encode.h (1 of 2 files). Show all
Unified · Split
| @@ -314,6 +314,10 @@ typedef struct VAAPIEncodeContext { · 313 unmodified lines | ||
| 314 | 314 | int idr_counter; |
| 315 | 315 | int gop_counter; |
| 316 | 316 | int end_of_stream; |
| 317 | + | |
| 318 | + // The encoder does not support cropping information, so warn about | |
| 319 | + // it the first time we encounter any nonzero crop fields. | |
| 320 | + int crop_warned; | |
| 317 | 321 | } VAAPIEncodeContext; |
| 318 | 322 | |
| 319 | 323 | enum { |