ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Fri Mar 18 18:46:40 2022 -0300| [327efa66331ebdc0087c6b656059a8df2f404019] | committer: James Almer
avutil/opt: add missing case for AV_OPT_TYPE_CHLAYOUT in av_opt_free() Fixes potential memleaks for existing options of this type. Signed-off-by: James Almer <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=327efa66331ebdc0087c6b656059a8df2f404019 --- libavutil/opt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavutil/opt.c b/libavutil/opt.c index 445537fbad..8ffb10449b 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -1729,6 +1729,10 @@ void av_opt_free(void *obj) av_dict_free((AVDictionary **)(((uint8_t *)obj) + o->offset)); break; + case AV_OPT_TYPE_CHLAYOUT: + av_channel_layout_uninit((AVChannelLayout *)(((uint8_t *)obj) + o->offset)); + break; + default: break; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".