]> git.sesse.net Git - vlc/commitdiff
Remove dead initialization.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 19 Jun 2009 08:20:11 +0000 (10:20 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 19 Jun 2009 08:37:59 +0000 (10:37 +0200)
modules/audio_filter/converter/a52tofloat32.c
modules/codec/avcodec/encoder.c
modules/codec/speex.c
modules/codec/spudec/parse.c
modules/codec/theora.c

index 083caf79a91c665be6d79bf317ee79566f09d84d..f496b265ff2454e47ed4e7d4b1b26afc597eee16 100644 (file)
@@ -3,7 +3,7 @@
  *   This plugin makes use of liba52 to decode A/52 audio
  *   (http://liba52.sf.net/).
  *****************************************************************************
- * Copyright (C) 2001, 2002 the VideoLAN team
+ * Copyright (C) 2001-2009 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@videolan.org>
@@ -119,7 +119,7 @@ vlc_module_end ()
 static int Create( vlc_object_t *p_this )
 {
     aout_filter_t *p_filter = (aout_filter_t *)p_this;
-    filter_sys_t *p_sys = (filter_sys_t *)p_filter->p_sys;
+    filter_sys_t *p_sys;
     int i_ret;
 
     if ( p_filter->input.i_format != VLC_CODEC_A52
index 86b44baea565985d96e6bbc8af90265ac2650f10..503f032426e10ac14efdd9355c76251624d0ccc1 100644 (file)
@@ -200,7 +200,7 @@ static const uint16_t mpeg4_default_non_intra_matrix[64] = {
 int OpenEncoder( vlc_object_t *p_this )
 {
     encoder_t *p_enc = (encoder_t *)p_this;
-    encoder_sys_t *p_sys = p_enc->p_sys;
+    encoder_sys_t *p_sys;
     AVCodecContext *p_context;
     AVCodec *p_codec;
     int i_codec_id, i_cat;
index 564a87c841e2085ea6aadb55ad12d5f6dccb406e..68a5f28faca51c6b2af7e9d11c3428da82123ea5 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * speex.c: speex decoder/packetizer/encoder module making use of libspeex.
  *****************************************************************************
- * Copyright (C) 2003-2008 the VideoLAN team
+ * Copyright (C) 2003-2009 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@videolan.org>
@@ -203,14 +203,13 @@ static block_t *Encode   ( encoder_t *, aout_buffer_t * );
 static int OpenDecoder( vlc_object_t *p_this )
 {
     decoder_t *p_dec = (decoder_t*)p_this;
-    decoder_sys_t *p_sys = p_dec->p_sys;
+    decoder_sys_t *p_sys;
 
     if( p_dec->fmt_in.i_codec != VLC_CODEC_SPEEX )
         return VLC_EGENERIC;
 
     /* Allocate the memory needed to store the decoder's structure */
-    if( ( p_dec->p_sys = p_sys =
-          (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
+    if( ( p_dec->p_sys = p_sys = malloc(sizeof(decoder_sys_t)) ) == NULL )
         return VLC_ENOMEM;
     p_dec->p_sys->bits.buf_size = 0;
     p_dec->p_sys->b_packetizer = false;
index c61674ae83fc6f506ce1e1830c562b73b1a1d12a..5287272b977263abb80753d411ddc710f089f2c2 100644 (file)
@@ -161,7 +161,7 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
     decoder_sys_t *p_sys = p_dec->p_sys;
 
     /* Our current index in the SPU packet */
-    unsigned int i_index = p_sys->i_rle_size + 4;
+    unsigned int i_index;
 
     /* The next start-of-control-sequence index and the previous one */
     unsigned int i_next_seq = 0, i_cur_seq = 0;
index 934c6839e5e4721a83471255d904aadcce2d739e..3ac5f120c2946c35a7a453185e3b1de55dc17964 100644 (file)
@@ -602,7 +602,7 @@ struct encoder_sys_t
 static int OpenEncoder( vlc_object_t *p_this )
 {
     encoder_t *p_enc = (encoder_t *)p_this;
-    encoder_sys_t *p_sys = p_enc->p_sys;
+    encoder_sys_t *p_sys;
     ogg_packet header;
     uint8_t *p_extra;
     vlc_value_t val;
@@ -615,7 +615,7 @@ static int OpenEncoder( vlc_object_t *p_this )
     }
 
     /* Allocate the memory needed to store the decoder's structure */
-    if( ( p_sys = (encoder_sys_t *)malloc(sizeof(encoder_sys_t)) ) == NULL )
+    if( ( p_sys = malloc(sizeof(encoder_sys_t)) ) == NULL )
         return VLC_ENOMEM;
     p_enc->p_sys = p_sys;