[FFmpeg-cvslog] av_vdpau_get_profile: mask out H.264 intra profile flag

Rémi Denis-Courmont git at videolan.org
Wed Mar 5 13:44:43 CET 2014


ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar  4 19:13:09 2014 +0000| [eeaf4f3b87815cbae4c12856cfaafb3a2dae8e0c] | committer: Janne Grunau

av_vdpau_get_profile: mask out H.264 intra profile flag

Signed-off-by: Janne Grunau <janne-libav at jannau.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eeaf4f3b87815cbae4c12856cfaafb3a2dae8e0c
---

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

diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index d8a35ee..50a57d0 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);



More information about the ffmpeg-cvslog mailing list