From 8d2862dc06b9304c42c917d42eb5a8ca79315d1d Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Wed, 13 May 2009 22:24:03 +0200 Subject: [PATCH] Let libmpeg2 decode mp1v/mp2v too. --- modules/codec/libmpeg2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c index b85f36ec17..b456fa93e1 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 ) { -- 2.39.5