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

avcodec: remove redundant decoder_sys_t.i_cat

parent 58534817
......@@ -315,7 +315,6 @@ static int OpenDecoder( vlc_object_t *p_this )
if( i_result == VLC_SUCCESS )
{
p_dec->p_sys->i_cat = i_cat;
if( p_context->profile != FF_PROFILE_UNKNOWN)
p_dec->fmt_in.i_profile = p_context->profile;
if( p_context->level != FF_LEVEL_UNKNOWN)
......@@ -333,7 +332,7 @@ static void CloseDecoder( vlc_object_t *p_this )
decoder_t *p_dec = (decoder_t *)p_this;
decoder_sys_t *p_sys = p_dec->p_sys;
switch( p_sys->i_cat )
switch( p_dec->fmt_out.i_cat )
{
case VIDEO_ES:
EndVideoDec ( p_dec );
......
......@@ -243,7 +243,6 @@ int ffmpeg_OpenCodec( decoder_t *p_dec );
"hev1 and hev2 are currently supported only with libfdk-aac enabled libavcodec" )
#define AVCODEC_COMMON_MEMBERS \
int i_cat; \
int i_codec_id; \
const char *psz_namecodec; \
AVCodecContext *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