summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-16 02:45:59 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-16 02:46:33 +0200
commitb8861ce8e28080b151467827f65bdc3707a74511 (patch)
tree389371a07fb867d9a37fc130d530df8c2fe2f66f /libvo
parent19b4d70e01ca2fd963b4ca599e0377e109a6881f (diff)
downloadmpv-b8861ce8e28080b151467827f65bdc3707a74511.tar.bz2
mpv-b8861ce8e28080b151467827f65bdc3707a74511.tar.xz
Support VDPAU MPEG4 hardware decoding
Original patch by NVIDIA.
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vdpau.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index 2bd0eec3c4..484b5fc87d 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -721,6 +721,11 @@ static int create_vdp_decoder(struct vo *vo, int max_refs)
case IMGFMT_VDPAU_VC1:
vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_ADVANCED;
break;
+#ifdef VDP_DECODER_PROFILE_MPEG4_PART2_ASP
+ case IMGFMT_VDPAU_MPEG4:
+ vdp_decoder_profile = VDP_DECODER_PROFILE_MPEG4_PART2_ASP;
+ break;
+#endif
}
vdp_st = vdp->decoder_create(vc->vdp_device, vdp_decoder_profile,
vc->vid_width, vc->vid_height, max_refs,
@@ -1508,6 +1513,7 @@ static int query_format(uint32_t format)
case IMGFMT_VDPAU_H264:
case IMGFMT_VDPAU_WMV3:
case IMGFMT_VDPAU_VC1:
+ case IMGFMT_VDPAU_MPEG4:
return default_flags;
}
return 0;