Commit 3dd2478c authored by Rafaël Carré's avatar Rafaël Carré

avcodec decoder: export profile/level at open

parent 3f6c9792
......@@ -321,7 +321,14 @@ static int OpenDecoder( vlc_object_t *p_this )
i_result = VLC_EGENERIC;
}
if( i_result == VLC_SUCCESS ) p_dec->p_sys->i_cat = i_cat;
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)
p_dec->fmt_in.i_level = p_context->level;
}
return i_result;
}
......
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