Commit eeaf4f3b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Janne Grunau

av_vdpau_get_profile: mask out H.264 intra profile flag

Signed-off-by: default avatarJanne Grunau <janne-libav@jannau.net>
parent 3407172b
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment