mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 21:30:55 +00:00
avutil/csp: eliminate redundant branch
This commit is contained in:
parent
ec0489e35c
commit
feb5982f43
@ -290,11 +290,7 @@ static const av_csp_trc_function trc_funcs[AVCOL_TRC_NB] = {
|
||||
|
||||
av_csp_trc_function av_csp_trc_func_from_id(enum AVColorTransferCharacteristic trc)
|
||||
{
|
||||
av_csp_trc_function func;
|
||||
if (trc >= AVCOL_TRC_NB)
|
||||
return NULL;
|
||||
func = trc_funcs[trc];
|
||||
if (!func)
|
||||
return NULL;
|
||||
return func;
|
||||
return trc_funcs[trc];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user