removed wrong 422 and 444 level limits
This commit is contained in:
parent
96bbc6c07e
commit
4a92a0c0a4
1 changed files with 26 additions and 18 deletions
|
@ -185,6 +185,9 @@ bool_t y262_validate_level( y262_t *ps_y262, int32_t i_level, bool_t b_forderive
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
i_luma_sample_rate = ( int32_t )( ( ( ( int64_t )( ps_y262->i_sequence_width * ps_y262->i_sequence_height ) ) * ps_y262->i_sequence_derived_timescale ) / ps_y262->i_sequence_derived_picture_duration );
|
i_luma_sample_rate = ( int32_t )( ( ( ( int64_t )( ps_y262->i_sequence_width * ps_y262->i_sequence_height ) ) * ps_y262->i_sequence_derived_timescale ) / ps_y262->i_sequence_derived_picture_duration );
|
||||||
|
|
||||||
|
if( ps_y262->i_sequence_chroma_format == Y262_CHROMA_FORMAT_420 )
|
||||||
|
{
|
||||||
if( i_luma_sample_rate > rgi_max_luma_sample_rate[ i_idx ] )
|
if( i_luma_sample_rate > rgi_max_luma_sample_rate[ i_idx ] )
|
||||||
{
|
{
|
||||||
if( !b_forderive && ps_y262->s_funcs.pf_error_callback )
|
if( !b_forderive && ps_y262->s_funcs.pf_error_callback )
|
||||||
|
@ -209,6 +212,11 @@ bool_t y262_validate_level( y262_t *ps_y262, int32_t i_level, bool_t b_forderive
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* 422/444 level limits where ? */
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue