[FFmpeg-devel] [PATCH 22/22] avfilter/formats: Avoid allocations when merging channel layouts

Nicolas George george at nsup.org
Thu Aug 13 17:23:16 EEST 2020


Andreas Rheinhardt (12020-08-13):
> No, I just swap the pointers, not the structures themselves. It just
> ensures a->refcount <= b->refcount in the following code. (The same
> swapping btw already happens at the beginning of the function.)

Oh, yes, my bad. I thought you wanted to reuse the formats array, but it
is not possible for channel layouts.

Then please go ahead.

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/20200813/9a44b871/attachment.sig>


More information about the ffmpeg-devel mailing list