aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2014-03-04 19:13:09 +0000
committerJanne Grunau <janne-libav@jannau.net>2014-03-04 22:48:55 +0100
commiteeaf4f3b87815cbae4c12856cfaafb3a2dae8e0c (patch)
treef0330007ba7772ba7064d52c0068e71fa2028331 /libavcodec
parent3407172b36a93cec410c6a287dbeec0f41257512 (diff)
downloadffmpeg-eeaf4f3b87815cbae4c12856cfaafb3a2dae8e0c.tar.gz
av_vdpau_get_profile: mask out H.264 intra profile flag
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vdpau.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index d8a35eeb3b..50a57d0970 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_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);