[vlc-devel] commit: Let libmpeg2 decode mp1v/mp2v too. (Laurent Aimar )
git version control
git at videolan.org
Wed May 13 22:25:06 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed May 13 22:24:03 2009 +0200| [8d2862dc06b9304c42c917d42eb5a8ca79315d1d] | committer: Laurent Aimar
Let libmpeg2 decode mp1v/mp2v too.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d2862dc06b9304c42c917d42eb5a8ca79315d1d
---
modules/codec/libmpeg2.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c
index b85f36e..b456fa9 100644
--- a/modules/codec/libmpeg2.c
+++ b/modules/codec/libmpeg2.c
@@ -119,8 +119,11 @@ static int OpenDecoder( vlc_object_t *p_this )
decoder_sys_t *p_sys;
uint32_t i_accel = 0;
- if( p_dec->fmt_in.i_codec != VLC_CODEC_MPGV )
+ if( p_dec->fmt_in.i_codec != VLC_CODEC_MP1V &&
+ p_dec->fmt_in.i_codec != VLC_CODEC_MP2V &&
+ p_dec->fmt_in.i_codec != VLC_CODEC_MPGV )
return VLC_EGENERIC;
+
/* Select onl recognized original format (standard mpeg video) */
switch( p_dec->fmt_in.i_original_fourcc )
{
More information about the vlc-devel
mailing list