summarylogtreecommitdiffstats
path: root/libva-vdpau-driver-0.7.4-ConstrainedBaseline.patch
blob: 383b2ac38463d4732f4d6cd1458d18ad3efc4ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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,