[vlc-commits] transcode/audio: don't initialise dec->fmt_out

Thomas Guillem git at videolan.org
Fri Jan 5 17:30:19 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan  5 17:29:48 2018 +0100| [d57688d952e7e932663246911bb2727ab4df284c] | committer: Thomas Guillem

transcode/audio: don't initialise dec->fmt_out

It's already done by transcode/transcode.c

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

 modules/stream_out/transcode/audio.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index dc1a9dc74b..aafead3b57 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -164,13 +164,6 @@ static int transcode_audio_new( sout_stream_t *p_stream,
      */
 
     /* Initialization of decoder structures */
-
-    /* No need to clean the fmt_out, it was freshly initialized by
-     * es_format_Init in Add() */
-    es_format_Copy( &id->p_decoder->fmt_out, &id->p_decoder->fmt_in );
-    free( id->p_decoder->fmt_out.p_extra );
-    id->p_decoder->fmt_out.i_extra = 0;
-    id->p_decoder->fmt_out.p_extra = NULL;
     id->p_decoder->pf_decode = NULL;
     id->p_decoder->pf_queue_audio = decoder_queue_audio;
     id->p_decoder->p_queue_ctx = id;



More information about the vlc-commits mailing list