vaapi_encode: Warn if input has cropping information

Cropping is not supported by VAAPI encode.
This commit is contained in:
Mark Thompson 2019-03-31 15:39:44 +01:00
parent ef2f89bbcc
commit 909bcedc58
2 changed files with 23 additions and 0 deletions

View file

@ -314,6 +314,10 @@ typedef struct VAAPIEncodeContext {
int idr_counter;
int gop_counter;
int end_of_stream;
// The encoder does not support cropping information, so warn about
// it the first time we encounter any nonzero crop fields.
int crop_warned;
} VAAPIEncodeContext;
enum {