History

avutil/opt: free the temporary layout in av_opt_is_set_to_default()

James Almer committed 2 years ago

Commit 4e069ba1 parent ae0293e1 file · +3 −1Browse files

Unified · Split

libavutil/opt.c+3−1
@@ -2309,7 +2309,9 @@ int av_opt_is_set_to_default(void *obj, const AVOption *o) · 2308 unmodified lines
2309 if ((ret = av_channel_layout_from_string(&ch_layout, o->default_val.str)) < 0)2309 if ((ret = av_channel_layout_from_string(&ch_layout, o->default_val.str)) < 0)
2310 return ret;2310 return ret;
2311 }2311 }
2312 return !av_channel_layout_compare((AVChannelLayout *)dst, &ch_layout);2312 ret = !av_channel_layout_compare((AVChannelLayout *)dst, &ch_layout);
2313 av_channel_layout_uninit(&ch_layout);
2314 return ret;
2313 }2315 }
2314 case AV_OPT_TYPE_STRING:2316 case AV_OPT_TYPE_STRING:
2315 str = *(char **)dst;2317 str = *(char **)dst;

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