[FFmpeg-devel] [PATCH v5 06/19] avutil/mem: add av_dynarray2_dup

Niklas Haas ffmpeg at haasn.xyz
Tue Jun 10 17:41:48 EEST 2025


On Tue, 10 Jun 2025 15:55:35 +0200 Andreas Rheinhardt <andreas.rheinhardt at outlook.com> wrote:
> Niklas Haas:
> > On Tue, 10 Jun 2025 15:04:57 +0200 Niklas Haas <ffmpeg at haasn.xyz> wrote:
> >> From: Niklas Haas <git at haasn.dev>
> >>
> >> Like av_memdup() but correctly rounds up to the nearest power of two so that
> >> av_dynarray2_add() will continue to work on the duplicated list.
> >
> > Just realized this is public, will add a Changelog entry and bump the API
> > version before merging.
> Is this version supposed to be merged?
> Anyway, this function seems way too specialised to me.

What would you prefer? Simply having this logic inside swscale? I'm not
very happy making cross-library assumptions about the exact resizing schedule.

Alternatively, we could ditch the use of av_dynarray2 entirely.

>
> - Andreas
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list