Commit de8f3ca8 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

transcode: audio: Fix format copy

This was causing a double free during decoder cleanup
parent 050a66fa
......@@ -164,7 +164,10 @@ static int transcode_audio_new( sout_stream_t *p_stream,
/* Initialization of decoder structures */
id->p_decoder->fmt_out = id->p_decoder->fmt_in;
/* 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 );
id->p_decoder->fmt_out.i_extra = 0;
id->p_decoder->fmt_out.p_extra = 0;
id->p_decoder->pf_decode = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment