[FFmpeg-cvslog] vdpau: add mapping for H.264 Extended profile

Rémi Denis-Courmont git at videolan.org
Sun Dec 14 22:22:10 CET 2014


ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec 13 18:42:20 2014 +0200| [8502c1e9ff9c1dbb6e467630c048d098f4064021] | committer: Anton Khirnov

vdpau: add mapping for H.264 Extended profile

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/vdpau.c      |    3 +++
 libavcodec/vdpau_h264.c |    5 +++++
 2 files changed, 8 insertions(+)

diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index fd3ae62..1e891ed 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -291,6 +291,9 @@ do {                                       \
         case FF_PROFILE_H264_CONSTRAINED_BASELINE:
         case FF_PROFILE_H264_MAIN:             PROFILE(H264_MAIN);
         case FF_PROFILE_H264_HIGH:             PROFILE(H264_HIGH);
+#ifdef VDP_DECODER_PROFILE_H264_EXTENDED
+        case FF_PROFILE_H264_EXTENDED:         PROFILE(H264_EXTENDED);
+#endif
         default:                               return AVERROR(EINVAL);
         }
     case AV_CODEC_ID_WMV3:
diff --git a/libavcodec/vdpau_h264.c b/libavcodec/vdpau_h264.c
index 4103328..d18a970 100644
--- a/libavcodec/vdpau_h264.c
+++ b/libavcodec/vdpau_h264.c
@@ -219,6 +219,11 @@ static int vdpau_h264_init(AVCodecContext *avctx)
     case FF_PROFILE_H264_HIGH:
         profile = VDP_DECODER_PROFILE_H264_HIGH;
         break;
+#ifdef VDP_DECODER_PROFILE_H264_EXTENDED
+    case FF_PROFILE_H264_EXTENDED:
+        profile = VDP_DECODER_PROFILE_H264_EXTENDED;
+        break;
+#endif
     default:
         return AVERROR(ENOTSUP);
     }



More information about the ffmpeg-cvslog mailing list