summaryrefslogtreecommitdiff
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index fd0bab14a2..8b89fd68e2 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -224,6 +224,9 @@ static int update_size(AVCodecContext *avctx, int w, int h)
#if CONFIG_VP9_VAAPI_HWACCEL
*fmtp++ = AV_PIX_FMT_VAAPI;
#endif
+#if CONFIG_VP9_VDPAU_HWACCEL
+ *fmtp++ = AV_PIX_FMT_VDPAU;
+#endif
break;
case AV_PIX_FMT_YUV420P12:
#if CONFIG_VP9_NVDEC_HWACCEL
@@ -232,6 +235,9 @@ static int update_size(AVCodecContext *avctx, int w, int h)
#if CONFIG_VP9_VAAPI_HWACCEL
*fmtp++ = AV_PIX_FMT_VAAPI;
#endif
+#if CONFIG_VP9_VDPAU_HWACCEL
+ *fmtp++ = AV_PIX_FMT_VDPAU;
+#endif
break;
}