[vlc-commits] packetizer: vc1: reorder initialization
Zhao Zhili
git at videolan.org
Wed Jun 20 14:45:22 CEST 2018
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Tue Jun 19 20:11:43 2018 +0800| [23aa0e8211803ad5b22eda8f5c3ae91cb3c7d830] | committer: Thomas Guillem
packetizer: vc1: reorder initialization
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23aa0e8211803ad5b22eda8f5c3ae91cb3c7d830
---
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 7ca438fdd9..229a716b2a 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,
More information about the vlc-commits
mailing list