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

avcodec: do not overwrite libavcodec internal AVCodec data

parent d1d268a3
......@@ -246,7 +246,6 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
return VLC_ENOMEM;
}
p_codec->type = AVMEDIA_TYPE_AUDIO;
p_context->codec_type = AVMEDIA_TYPE_AUDIO;
p_context->codec_id = i_codec_id;
#if (LIBAVCODEC_VERSION_MAJOR >= 55)
......
......@@ -70,7 +70,6 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
if (!sys)
return VLC_ENOMEM;
codec->type = AVMEDIA_TYPE_SUBTITLE;
context->codec_type = AVMEDIA_TYPE_SUBTITLE;
context->codec_id = codec_id;
sys->p_context = context;
......
......@@ -267,7 +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_codec->type = AVMEDIA_TYPE_VIDEO;
p_context->codec_type = AVMEDIA_TYPE_VIDEO;
p_context->codec_id = i_codec_id;
p_sys->p_context = p_context;
......
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