diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-03-27 20:45:21 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-04-26 22:57:57 +0100 |
commit | 64a5260c695dd8051509d3270295fd64eac56587 (patch) | |
tree | 25a9c5ec305f64cc6c656c3b23bc7acc003255ce /libavcodec/avcodec.h | |
parent | 6af014f4028238b4c50f1731b3369a41d65fa9c4 (diff) | |
download | ffmpeg-64a5260c695dd8051509d3270295fd64eac56587.tar.gz |
lavc: Add flag to allow profile mismatch with hardware decoding
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 3118b10e9b..162f1abe4b 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3006,6 +3006,20 @@ typedef struct AVHWAccel { #define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (1 << 1) /** + * Hardware acceleration should still be attempted for decoding when the + * codec profile does not match the reported capabilities of the hardware. + * + * For example, this can be used to try to decode baseline profile H.264 + * streams in hardware - it will often succeed, because many streams marked + * as baseline profile actually conform to constrained baseline profile. + * + * @warning If the stream is actually not supported then the behaviour is + * undefined, and may include returning entirely incorrect output + * while indicating success. + */ +#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2) + +/** * @} */ |