History

lavc: Add flag to allow profile mismatch with hardware decoding

(cherry picked from commit 64a5260c695dd8051509d3270295fd64eac56587)

Mark Thompson committed 9 years ago

Commit 49ae8a51 parent b658b533 files · +18 −1Browse files

Unified · Split

3 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +14 −0
  3. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -15,6 +15,9 @@ libavutil: 2015-08-28 · 14 unmodified lines
1515
1616 API changes, most recent first:
1717
18+2017-06-14 - xxxxxxx - lavc 57.99.100 - avcodec.h
19+ Add AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH.
20+
1821 2017-06-14 - xxxxxxx - lavu 55.65.100 - hwcontext.h
1922 Add AV_HWDEVICE_TYPE_NONE, av_hwdevice_find_type_by_name(),
2023 av_hwdevice_get_type_name() and av_hwdevice_iterate_types().
libavcodec/avcodec.h+14−0
@@ -4001,6 +4001,20 @@ typedef struct AVHWAccel { · 4000 unmodified lines
40014001 */
40024002 #define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (1 << 1)
40034003
4004+/**
4005+ * Hardware acceleration should still be attempted for decoding when the
4006+ * codec profile does not match the reported capabilities of the hardware.
4007+ *
4008+ * For example, this can be used to try to decode baseline profile H.264
4009+ * streams in hardware - it will often succeed, because many streams marked
4010+ * as baseline profile actually conform to constrained baseline profile.
4011+ *
4012+ * @warning If the stream is actually not supported then the behaviour is
4013+ * undefined, and may include returning entirely incorrect output
4014+ * while indicating success.
4015+ */
4016+#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2)
4017+
40044018 /**
40054019 * @}
40064020 */
libavcodec/version.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "libavutil/version.h"
2929
3030 #define LIBAVCODEC_VERSION_MAJOR 57
31−#define LIBAVCODEC_VERSION_MINOR 98
31+#define LIBAVCODEC_VERSION_MINOR 99
3232 #define LIBAVCODEC_VERSION_MICRO 100
3333
3434 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t