diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2014-12-13 18:42:21 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-12-14 18:30:03 +0100 |
commit | 559fa0d41b5cf8f7e1ba89d1ac70e74712eb2816 (patch) | |
tree | 43914f7e57e25e6e785690bec737fbafd8062f8b /libavcodec/vdpau_h264.c | |
parent | 8502c1e9ff9c1dbb6e467630c048d098f4064021 (diff) | |
download | ffmpeg-559fa0d41b5cf8f7e1ba89d1ac70e74712eb2816.tar.gz |
vdpau: add mapping for H.264 Constrained Baseline profile and fallback
Old VDPAU drivers do not support this newly defined profile, so falling
back to Main profile is necessary for backward binary compatibility.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vdpau_h264.c')
-rw-r--r-- | libavcodec/vdpau_h264.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vdpau_h264.c b/libavcodec/vdpau_h264.c index d18a970fc1..5ed1fffe09 100644 --- a/libavcodec/vdpau_h264.c +++ b/libavcodec/vdpau_h264.c @@ -213,6 +213,10 @@ static int vdpau_h264_init(AVCodecContext *avctx) profile = VDP_DECODER_PROFILE_H264_BASELINE; break; case FF_PROFILE_H264_CONSTRAINED_BASELINE: +#ifdef VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE + profile = VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE; + break; +#endif case FF_PROFILE_H264_MAIN: profile = VDP_DECODER_PROFILE_H264_MAIN; break; |