Commit b9394111 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: remove no-op

This is already taken care of by avcodec_open2().
parent 894a0604
......@@ -246,8 +246,6 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
return VLC_ENOMEM;
}
p_context->codec_type = AVMEDIA_TYPE_AUDIO;
p_context->codec_id = p_codec->id;
#if (LIBAVCODEC_VERSION_MAJOR >= 55)
p_context->refcounted_frames = true;
#else
......
......@@ -70,8 +70,6 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
if (!sys)
return VLC_ENOMEM;
context->codec_type = AVMEDIA_TYPE_SUBTITLE;
context->codec_id = codec->id;
sys->p_context = context;
sys->p_codec = codec;
sys->b_delayed_open = false;
......
......@@ -267,8 +267,6 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
if( ( p_dec->p_sys = p_sys = calloc( 1, sizeof(decoder_sys_t) ) ) == NULL )
return VLC_ENOMEM;
p_context->codec_type = AVMEDIA_TYPE_VIDEO;
p_context->codec_id = p_codec->id;
p_sys->p_context = p_context;
p_sys->p_codec = p_codec;
p_sys->p_ff_pic = avcodec_alloc_frame();
......
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