diff options
author | Mark Thompson <sw@jkqxz.net> | 2019-03-31 15:39:44 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-06-02 17:30:41 +0100 |
commit | 909bcedc581aa03dd5e22ecb1d0cc3b52eba8c26 (patch) | |
tree | 7cb9f3e25f64642d99365e56d84ca033ceb35cda /libavcodec/vaapi_encode.h | |
parent | ef2f89bbccc973fbde0926bfedef6e1eb3604674 (diff) |
vaapi_encode: Warn if input has cropping information
Cropping is not supported by VAAPI encode.
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 44a8db566e..12efee2d08 100644 --- a/libavcodec/vaapi_encode.h +++ b/libavcodec/vaapi_encode.h @@ -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 { |