[vlc-devel] [PATCH 11/11] packetizer: vc1: reorder initialization
Zhao Zhili
quinkblack at foxmail.com
Tue Jun 19 14:11:43 CEST 2018
---
modules/packetizer/vc1.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/packetizer/vc1.c b/modules/packetizer/vc1.c
index 7ca438f..229a716 100644
--- a/modules/packetizer/vc1.c
+++ b/modules/packetizer/vc1.c
@@ -146,16 +146,16 @@ static int Open( vlc_object_t *p_this )
if( p_dec->fmt_in.i_codec != VLC_CODEC_VC1 )
return VLC_EGENERIC;
- p_dec->pf_packetize = Packetize;
- p_dec->pf_flush = Flush;
- p_dec->pf_get_cc = GetCc;
-
- /* Create the output format */
- es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) );
if( unlikely( !p_sys ) )
return VLC_ENOMEM;
+ /* Create the output format */
+ es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
+ p_dec->pf_packetize = Packetize;
+ p_dec->pf_flush = Flush;
+ p_dec->pf_get_cc = GetCc;
+
packetizer_Init( &p_sys->packetizer,
p_vc1_startcode, sizeof(p_vc1_startcode), startcode_FindAnnexB,
NULL, 0, 4,
--
2.9.5
More information about the vlc-devel
mailing list