[libav-devel] [PATCH] av_vdpau_get_profile: mask out extra H.264 profile bits

Rémi Denis-Courmont remi at remlab.net
Tue Mar 4 21:13:09 CET 2014


---
 libavcodec/vdpau.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index d8a35ee..2bdeaa2 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -114,7 +114,7 @@ do {                        \
         default:                               return AVERROR(EINVAL);
         }
     case AV_CODEC_ID_H264:
-        switch (avctx->profile) {
+        switch (avctx->profile & ~(FF_PROFILE_H264_CONSTRAINED|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);
-- 
1.9.0



More information about the libav-devel mailing list