summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/fmt-conversion.c')
-rw-r--r--video/fmt-conversion.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c
index 153b1badf3..500b4b1609 100644
--- a/video/fmt-conversion.c
+++ b/video/fmt-conversion.c
@@ -171,12 +171,18 @@ static const struct {
{IMGFMT_BGRA64_LE, PIX_FMT_BGRA64LE},
#endif
+#if HAVE_AV_CODEC_NEW_VDPAU_API
+ {IMGFMT_VDPAU, AV_PIX_FMT_VDPAU},
+#else
{IMGFMT_VDPAU_MPEG1, PIX_FMT_VDPAU_MPEG1},
{IMGFMT_VDPAU_MPEG2, PIX_FMT_VDPAU_MPEG2},
{IMGFMT_VDPAU_H264, PIX_FMT_VDPAU_H264},
{IMGFMT_VDPAU_WMV3, PIX_FMT_VDPAU_WMV3},
{IMGFMT_VDPAU_VC1, PIX_FMT_VDPAU_VC1},
{IMGFMT_VDPAU_MPEG4, PIX_FMT_VDPAU_MPEG4},
+ // map to an arbitrary but existing vdpau format
+ {IMGFMT_VDPAU, PIX_FMT_VDPAU_H264},
+#endif
{0, PIX_FMT_NONE}
};