[vlc-commits] demux: mpegv: no need to initialize the es_format_t twice

Steve Lhomme git at videolan.org
Wed Jul 12 12:22:38 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Jul 10 10:13:24 2017 +0200| [2bd083899166e637577707287dd1deacce6e3180] | committer: Jean-Baptiste Kempf

demux: mpegv: no need to initialize the es_format_t twice

It won't be modified during the demux_PacketizerNew() call.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/mpeg/mpgv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/demux/mpeg/mpgv.c b/modules/demux/mpeg/mpgv.c
index 6a44f27dea..c8d3e3ed39 100644
--- a/modules/demux/mpeg/mpgv.c
+++ b/modules/demux/mpeg/mpgv.c
@@ -129,7 +129,6 @@ static int Open( vlc_object_t * p_this )
     }
 
     /* create the output */
-    es_format_Init( &fmt, VIDEO_ES, VLC_CODEC_MPGV );
     p_sys->p_es = es_out_Add( p_demux->out, &fmt );
     if( p_sys->p_es == NULL )
     {



More information about the vlc-commits mailing list