diff options
Diffstat (limited to 'libva-vdpau-driver-0.7.4-ConstrainedBaseline.patch')
-rw-r--r-- | libva-vdpau-driver-0.7.4-ConstrainedBaseline.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libva-vdpau-driver-0.7.4-ConstrainedBaseline.patch b/libva-vdpau-driver-0.7.4-ConstrainedBaseline.patch new file mode 100644 index 000000000000..383b2ac38463 --- /dev/null +++ b/libva-vdpau-driver-0.7.4-ConstrainedBaseline.patch @@ -0,0 +1,44 @@ +diff --git a/src/vdpau_decode.c.orig b/src/vdpau_decode.c +index 881ca84..9f08abf 100644 +--- a/src/vdpau_decode.c.orig ++++ b/src/vdpau_decode.c +@@ -69,19 +69,19 @@ VdpCodec get_VdpCodec(VdpDecoderProfile profile) + VdpDecoderProfile get_VdpDecoderProfile(VAProfile profile) + { + switch (profile) { ++ case VAProfileMPEG2Simple: return VDP_DECODER_PROFILE_MPEG2_SIMPLE; ++ case VAProfileMPEG2Main: return VDP_DECODER_PROFILE_MPEG2_MAIN; +- case VAProfileMPEG2Simple: return VDP_DECODER_PROFILE_MPEG2_SIMPLE; +- case VAProfileMPEG2Main: return VDP_DECODER_PROFILE_MPEG2_MAIN; + #if USE_VDPAU_MPEG4 ++ case VAProfileMPEG4Simple: return VDP_DECODER_PROFILE_MPEG4_PART2_SP; ++ case VAProfileMPEG4AdvancedSimple: return VDP_DECODER_PROFILE_MPEG4_PART2_ASP; +- case VAProfileMPEG4Simple: return VDP_DECODER_PROFILE_MPEG4_PART2_SP; +- case VAProfileMPEG4AdvancedSimple: return VDP_DECODER_PROFILE_MPEG4_PART2_ASP; + #endif ++ case VAProfileH264ConstrainedBaseline: return VDP_DECODER_PROFILE_H264_BASELINE; ++ case VAProfileH264Main: return VDP_DECODER_PROFILE_H264_MAIN; ++ case VAProfileH264High: return VDP_DECODER_PROFILE_H264_HIGH; ++ case VAProfileVC1Simple: return VDP_DECODER_PROFILE_VC1_SIMPLE; ++ case VAProfileVC1Main: return VDP_DECODER_PROFILE_VC1_MAIN; ++ case VAProfileVC1Advanced: return VDP_DECODER_PROFILE_VC1_ADVANCED; ++ default: break; +- case VAProfileH264Baseline: return VDP_DECODER_PROFILE_H264_BASELINE; +- case VAProfileH264Main: return VDP_DECODER_PROFILE_H264_MAIN; +- case VAProfileH264High: return VDP_DECODER_PROFILE_H264_HIGH; +- case VAProfileVC1Simple: return VDP_DECODER_PROFILE_VC1_SIMPLE; +- case VAProfileVC1Main: return VDP_DECODER_PROFILE_VC1_MAIN; +- case VAProfileVC1Advanced: return VDP_DECODER_PROFILE_VC1_ADVANCED; +- default: break; + } + return (VdpDecoderProfile)-1; + } +@@ -1058,7 +1058,7 @@ vdpau_QueryConfigProfiles( + VAProfileMPEG4Simple, + VAProfileMPEG4AdvancedSimple, + VAProfileMPEG4Main, ++ VAProfileH264ConstrainedBaseline, +- VAProfileH264Baseline, + VAProfileH264Main, + VAProfileH264High, + VAProfileVC1Simple, |