mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avutil/csp: eliminate redundant branch
This commit is contained in:
+1
-5
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user