vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Thu Apr 12 
06:39:31 2018 +0200| [815aa4c4f5f713e8213f18da9f2e6a4495692c4a] | committer: 
Francois Cartegnie

packetizer: mpegvideo: add codec alias

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=815aa4c4f5f713e8213f18da9f2e6a4495692c4a
---

 modules/packetizer/mpegvideo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index 703b1d78e1..2a4ede4530 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -195,7 +195,8 @@ static int Open( vlc_object_t *p_this )
     decoder_t *p_dec = (decoder_t*)p_this;
     decoder_sys_t *p_sys;
 
-    if( p_dec->fmt_in.i_codec != VLC_CODEC_MPGV )
+    if( p_dec->fmt_in.i_codec != VLC_CODEC_MPGV &&
+        p_dec->fmt_in.i_codec != VLC_CODEC_MP2V )
         return VLC_EGENERIC;
 
     p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) );

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to