Use id->p_decoder->fmt_out as input for id->p_encoder->fmt_in. Removes double initial...
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 2 Jan 2008 09:46:40 +0000 (09:46 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 2 Jan 2008 09:46:40 +0000 (09:46 +0000)
modules/stream_out/transcode.c

index 8ba37dd..3bc217b 100644 (file)
@@ -1349,10 +1349,6 @@ static int transcode_audio_new( sout_stream_t *p_stream,
                     id->p_decoder->fmt_out.i_codec );
     id->p_encoder->fmt_in.audio.i_format = id->p_decoder->fmt_out.i_codec;
 
-    /* Initialization of encoder format structures */
-    es_format_Init( &id->p_encoder->fmt_in, AUDIO_ES, VLC_FOURCC('f','l','3','2') );
-    id->p_encoder->fmt_in.audio.i_format = VLC_FOURCC('f','l','3','2');
-
     id->p_encoder->fmt_in.audio.i_rate = id->p_encoder->fmt_out.audio.i_rate;
     id->p_encoder->fmt_in.audio.i_physical_channels =
         id->p_encoder->fmt_out.audio.i_physical_channels;