]> git.sesse.net Git - ffmpeg/commitdiff
lavc: Add flag to allow profile mismatch with hardware decoding
authorMark Thompson <sw@jkqxz.net>
Mon, 27 Mar 2017 19:45:21 +0000 (20:45 +0100)
committerMark Thompson <sw@jkqxz.net>
Wed, 14 Jun 2017 21:27:04 +0000 (22:27 +0100)
(cherry picked from commit 64a5260c695dd8051509d3270295fd64eac56587)

doc/APIchanges
libavcodec/avcodec.h
libavcodec/version.h

index e94534e9c7b7c55ce81b93c82c93725e6de97270..cedffbf428dcb8933267aa484547e70c89aa8ffc 100644 (file)
@@ -15,6 +15,9 @@ libavutil:     2015-08-28
 
 API changes, most recent first:
 
+2017-06-14 - xxxxxxx - lavc 57.99.100 - avcodec.h
+  Add AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH.
+
 2017-06-14 - xxxxxxx - lavu 55.65.100 - hwcontext.h
   Add AV_HWDEVICE_TYPE_NONE, av_hwdevice_find_type_by_name(),
   av_hwdevice_get_type_name() and av_hwdevice_iterate_types().
index dcdcfe00ae21e12a0f1589e6ca937ac216ff4afa..39be8cf7171f5948fc7d4ef8fb5bebac30808349 100644 (file)
@@ -4001,6 +4001,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)
+
 /**
  * @}
  */
index c93487273af8c7a59e6164503c30dd60731d195a..a44a88832d8ba7e6e6ed3189191f6fd4709c572c 100644 (file)
@@ -28,7 +28,7 @@
 #include "libavutil/version.h"
 
 #define LIBAVCODEC_VERSION_MAJOR  57
-#define LIBAVCODEC_VERSION_MINOR  98
+#define LIBAVCODEC_VERSION_MINOR  99
 #define LIBAVCODEC_VERSION_MICRO 100
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \