Commit 1f8021e5 authored by Thomas Guillem's avatar Thomas Guillem

transcode/video: fix corruption of dec->fmt_in

This could lead to a crash when the decoder module was modifying/writing on, fmt_out.psz_description or fmt_out.p_extra_languages
(so as soon as avcodec is updating its fmt_out).

The decoder fmt_out is already initialised from transcode/transcode.c.

parent 3375d541
......@@ -184,10 +184,6 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_sys_t *i
/* Open decoder
* Initialization of decoder structures
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 = NULL;
id->p_decoder->fmt_out.psz_language = NULL;
id->p_decoder->pf_decode = NULL;
id->p_decoder->pf_queue_video = decoder_queue_video;
id->p_decoder->p_queue_ctx = id;
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