av_vdpau_get_profile: mask out H.264 intra profile flag
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 4 Mar 2014 19:13:09 +0000 (19:13 +0000)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 4 Mar 2014 21:48:55 +0000 (22:48 +0100)
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavcodec/vdpau.c

index d8a35ee..50a57d0 100644 (file)
@@ -114,7 +114,7 @@ do {                        \
         default:                               return AVERROR(EINVAL);
         }
     case AV_CODEC_ID_H264:
-        switch (avctx->profile) {
+        switch (avctx->profile & ~FF_PROFILE_H264_INTRA) {
         case FF_PROFILE_H264_CONSTRAINED_BASELINE:
         case FF_PROFILE_H264_BASELINE:         PROFILE(VDP_DECODER_PROFILE_H264_BASELINE);
         case FF_PROFILE_H264_MAIN:             PROFILE(VDP_DECODER_PROFILE_H264_MAIN);