History

lavu/opt: properly initialize av_opt_set_array return value

Timo Rothenpieler committed 2 years ago

Commit 7e35aed1 parent c0666d81 file · +1 −1Browse files

Unified · Split

libavutil/opt.c+1−1
@@ -2260,7 +2260,7 @@ int av_opt_set_array(void *obj, const char *name, int search_flags, · 2259 unmodified lines
2260 unsigned *array_size, new_size;2260 unsigned *array_size, new_size;
2261 size_t elem_size;2261 size_t elem_size;
2262 2262
2263 int ret;2263 int ret = 0;
2264 2264
2265 o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);2265 o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
2266 if (!o || !target_obj)2266 if (!o || !target_obj)

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