Commit 7442c8c7 authored by Romain Vimont's avatar Romain Vimont Committed by Jean-Baptiste Kempf

core: replace encoder_sys_t* by void*

See #17078
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b3b7f62c
......@@ -213,7 +213,7 @@ struct encoder_t
/* Module properties */
module_t * p_module;
encoder_sys_t * p_sys;
void *p_sys;
/* Properties of the input data fed to the encoder */
es_format_t fmt_in;
......
......@@ -684,7 +684,7 @@ static int OpenEncoder(vlc_object_t *p_this)
sys->i_nb_samples = 0;
sys->i_samples_delay = 0;
int ret = opus_multistream_encoder_ctl(enc->p_sys->enc,
int ret = opus_multistream_encoder_ctl(sys->enc,
OPUS_GET_LOOKAHEAD(&sys->i_samples_delay));
if (ret != OPUS_OK)
msg_Err(enc, "Unable to get number of lookahead samples: %s\n",
......
......@@ -337,13 +337,15 @@ static int OpenEncoder(vlc_object_t *p_this)
return VLC_EGENERIC;
/* Allocate the memory needed to store the encoder's structure */
encoder_sys_t *p_sys = malloc( sizeof(encoder_sys_t) );
p_enc->p_sys = malloc( sizeof(encoder_sys_t) );
if( p_enc->p_sys == NULL )
return VLC_ENOMEM;
p_enc->p_sys = p_sys;
p_enc->p_sys->p_obj = p_this;
p_sys->p_obj = p_this;
p_enc->p_sys->i_blocksize = 3 * p_enc->fmt_in.video.i_visible_width *
p_sys->i_blocksize = 3 * p_enc->fmt_in.video.i_visible_width *
p_enc->fmt_in.video.i_visible_height;
p_enc->fmt_in.i_codec = VLC_CODEC_RGB24;
......
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