summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-03-27 20:45:21 +0100
committerMark Thompson <sw@jkqxz.net>2017-06-14 22:27:04 +0100
commit49ae8a5e87f99b15514f5ef075d801e9ea8374e9 (patch)
treecaca6256c9f1aa61d251623c0ae349db8e5655f1 /libavcodec/avcodec.h
parentb658b5399e5d75cec44b09d79b00f59fa83cca43 (diff)
lavc: Add flag to allow profile mismatch with hardware decoding
(cherry picked from commit 64a5260c695dd8051509d3270295fd64eac56587)
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index dcdcfe00ae..39be8cf717 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4002,6 +4002,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)
+
+/**
* @}
*/