1
0
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:
James Almer 2024-05-06 12:38:44 -03:00
parent ae0293ee41
commit 4e069ba80a

View File

@ -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)
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:
str = *(char **)dst;