summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2015-06-23 20:37:08 -0700
committerPhilip Langdale <philipl@overt.org>2015-08-16 15:02:33 -0700
commitd3eb317b862c3f5653f0ae8dfcb22edf1713ab5b (patch)
treecf1852ab09d2be9c0d25c2be339cf9eaae1d54b7 /libavcodec/avcodec.h
parentd90fbde06a800d151c420ca32e4e0a015b9076f9 (diff)
ffmpeg_vdpau: Ignore decoder's max supported level
The h264 decoder reports 4.1 as its maximum level, but it will decode 5.1 4K video just fine. In practice, the published level limits in vdpau do not communicate anything that's actually useful.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4222db6939..f09d8f4a6b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3715,6 +3715,9 @@ typedef struct AVHWAccel {
* Hardware acceleration should be used for decoding even if the codec level
* used is unknown or higher than the maximum supported level reported by the
* hardware driver.
+ *
+ * It's generally a good idea to pass this flag unless you have a specific
+ * reason not to, as hardware tends to under-report supported levels.
*/
#define AV_HWACCEL_FLAG_IGNORE_LEVEL (1 << 0)