Unified · Split
| @@ -2309,7 +2309,9 @@ int av_opt_is_set_to_default(void *obj, const AVOption *o) · 2308 unmodified lines | ||
| 2309 | 2309 | if ((ret = av_channel_layout_from_string(&ch_layout, o->default_val.str)) < 0) |
| 2310 | 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 | 2316 | case AV_OPT_TYPE_STRING: |
| 2315 | 2317 | str = *(char **)dst; |