Skip to content

Commit

Permalink
vdpau: fix constrained baseline fallback
Browse files Browse the repository at this point in the history
It appears vdpau drivers can return constrained baseline as unsupported,
even if libvdpau knows about the symbol, and the main profile is
supported.

Signed-off-by: Anton Khirnov <[email protected]>
  • Loading branch information
wm4 authored and elenril committed Sep 28, 2015
1 parent cc8db76 commit a41e5e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libavcodec/vdpau.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
status = decoder_query_caps(vdctx->device, profile, &supported, &max_level,
&max_mb, &max_width, &max_height);
#ifdef VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE
if (status != VDP_STATUS_OK && profile == VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE) {
/* Run-time backward compatibility for libvdpau 0.8 and earlier */
if ((status != VDP_STATUS_OK || supported != VDP_TRUE) && profile == VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE) {
profile = VDP_DECODER_PROFILE_H264_MAIN;
status = decoder_query_caps(vdctx->device, profile, &supported,
&max_level, &max_mb,
Expand Down

0 comments on commit a41e5e1

Please sign in to comment.