[vlc-commits] vdpau: correct MPEG4 profiles checks
Rémi Denis-Courmont
git at videolan.org
Tue Jul 9 20:41:24 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 9 21:40:57 2013 +0300| [468a41790bac93a07a63d73d2cea5bf10c46c112] | committer: Rémi Denis-Courmont
vdpau: correct MPEG4 profiles checks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=468a41790bac93a07a63d73d2cea5bf10c46c112
---
modules/hw/vdpau/avcodec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 4f79e49..d9d04e4 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -204,12 +204,12 @@ static int Open(vlc_va_t *va, int codec, const es_format_t *fmt)
case FF_PROFILE_MPEG4_SIMPLE:
profile = VDP_DECODER_PROFILE_MPEG4_PART2_SP;
break;
- case FF_PROFILE_MPEG4_SIMPLE_STUDIO:
- msg_Err(va, "unsupported %s profile %d", "MPEG4", fmt->i_profile);
- return VLC_EGENERIC;
- default:
+ case FF_PROFILE_MPEG4_ADVANCED_SIMPLE:
profile = VDP_DECODER_PROFILE_MPEG4_PART2_ASP;
break;
+ default:
+ msg_Err(va, "unsupported %s profile %d", "MPEG4", fmt->i_profile);
+ return VLC_EGENERIC;
}
level = fmt->i_level;
break;
More information about the vlc-commits
mailing list