History

avutil/csp: eliminate redundant branch

Niklas Haas committed 1 year ago

Commit feb59821 parent ec0489e1 file · +1 −5Browse files

Unified · Split

libavutil/csp.c+1−5
@@ -290,11 +290,7 @@ static const av_csp_trc_function trc_funcs[AVCOL_TRC_NB] = { · 289 unmodified lines
290290
291291 av_csp_trc_function av_csp_trc_func_from_id(enum AVColorTransferCharacteristic trc)
292292 {
293− av_csp_trc_function func;
294293 if (trc >= AVCOL_TRC_NB)
295294 return NULL;
296− func = trc_funcs[trc];
297− if (!func)
298− return NULL;
299− return func;
295+ return trc_funcs[trc];
300296 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t