diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2014-10-26 21:24:12 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-28 07:06:13 +0100 |
commit | 26ab504ad8d2b23535c9a0ad43bf1fd0e6aa0893 (patch) | |
tree | 68c3329524f4ef9b6b066466e13effb56b077bc7 | |
parent | 11467ecf519788f2e2f49c63a17eb600e618489e (diff) | |
download | ffmpeg-26ab504ad8d2b23535c9a0ad43bf1fd0e6aa0893.tar.gz |
vdpau/h264: request MAIN rather than BASELINE VDPAU profile for CBP
The H.264 Constrained Baseline Profile (CBP) is a subset of both the
Main Profile and the Baseline Profile. In principles, a hardware
decoder that supports either of those can decode CBP content. As it
happens, Main is supported by all VDPAU drivers, and Baseline is not.
So favor map CBP to MP for now. Hopefully in the future libvdpau will
offer an explicit choice for CBP.
This fixes bug 757.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavcodec/vdpau_h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vdpau_h264.c b/libavcodec/vdpau_h264.c index b759335289..41033284be 100644 --- a/libavcodec/vdpau_h264.c +++ b/libavcodec/vdpau_h264.c @@ -209,10 +209,10 @@ static int vdpau_h264_init(AVCodecContext *avctx) uint32_t level = avctx->level; switch (avctx->profile & ~FF_PROFILE_H264_INTRA) { - case FF_PROFILE_H264_CONSTRAINED_BASELINE: case FF_PROFILE_H264_BASELINE: profile = VDP_DECODER_PROFILE_H264_BASELINE; break; + case FF_PROFILE_H264_CONSTRAINED_BASELINE: case FF_PROFILE_H264_MAIN: profile = VDP_DECODER_PROFILE_H264_MAIN; break; |