Browse Source

av_vdpau_get_profile: mask out H.264 intra profile flag

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
tags/n2.3
Rémi Denis-Courmont Janne Grunau 11 years ago
parent
commit
eeaf4f3b87
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vdpau.c

+ 1
- 1
libavcodec/vdpau.c View 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);


Loading…
Cancel
Save