mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avutil/opt: free the temporary layout in av_opt_is_set_to_default()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
ae0293ee41
commit
4e069ba80a
@ -2309,7 +2309,9 @@ int av_opt_is_set_to_default(void *obj, const AVOption *o)
|
|||||||
if ((ret = av_channel_layout_from_string(&ch_layout, o->default_val.str)) < 0)
|
if ((ret = av_channel_layout_from_string(&ch_layout, o->default_val.str)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
return !av_channel_layout_compare((AVChannelLayout *)dst, &ch_layout);
|
ret = !av_channel_layout_compare((AVChannelLayout *)dst, &ch_layout);
|
||||||
|
av_channel_layout_uninit(&ch_layout);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
case AV_OPT_TYPE_STRING:
|
case AV_OPT_TYPE_STRING:
|
||||||
str = *(char **)dst;
|
str = *(char **)dst;
|
||||||
|
Loading…
Reference in New Issue
Block a user