[FFmpeg-devel] [PATCH 08/10] avfilter/formats: Avoid redundant counter

Nicolas George george at nsup.org
Fri Aug 20 12:17:34 EEST 2021


Andreas Rheinhardt (12021-08-15):
> The ff_set_common_(formats|channel_layouts|samplerates) have to free
> their list in case it doesn't have an owner; therefore they tracked
> whether they attached it to an owner. But the list's refcount already
> contains such a counter, so we don't have to keep track of whether we
> have attached the list to an owner.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavfilter/formats.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)

Should be ok.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210820/581a41e7/attachment.sig>


More information about the ffmpeg-devel mailing list