[vlc-commits] mpegvideo: move pf_get/pf_packetize at the end

Ilkka Ollakka git at videolan.org
Tue Jul 15 15:09:30 CEST 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Mar 15 17:16:12 2014 +0200| [45aa11da70897cda94b6d7bcce20d803f0bd25e8] | committer: Ilkka Ollakka

mpegvideo: move pf_get/pf_packetize at the end

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

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

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index 2d21fa7..f9b12f0 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -159,8 +159,6 @@ static int Open( vlc_object_t *p_this )
     es_format_Init( &p_dec->fmt_out, VIDEO_ES, VLC_CODEC_MPGV );
     p_dec->fmt_out.i_original_fourcc = p_dec->fmt_in.i_original_fourcc;
 
-    p_dec->pf_packetize = Packetize;
-    p_dec->pf_get_cc = GetCc;
 
     p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) );
     if( !p_dec->p_sys )
@@ -210,6 +208,9 @@ static int Open( vlc_object_t *p_this )
     p_sys->i_cc_flags = 0;
     cc_Init( &p_sys->cc );
 
+    p_dec->pf_packetize = Packetize;
+    p_dec->pf_get_cc = GetCc;
+
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list