[FFmpeg-devel] [PATCH] Add new vf_tiltandshift filter

Vittorio Giovara vittorio.giovara at gmail.com
Fri Dec 15 22:12:24 EET 2023


On Fri, Dec 15, 2023 at 12:34 PM Andreas Rheinhardt <
andreas.rheinhardt at outlook.com> wrote:

> > +static int list_add_frame(FrameList **list, size_t *size, AVFrame
> > *frame)
> > +{
> > +    FrameList *element = av_mallocz(sizeof(FrameList));
>
> The overhead of this FrameList is unnecessary: You can simply use
> AVFrame.opaque as your next pointer.
>

Good tip! Attached an edited version, with all the other suggestions too.
-- 
Vittorio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-new-vf_tiltandshift-filter.patch
Type: application/octet-stream
Size: 21413 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20231215/addfe565/attachment.obj>


More information about the ffmpeg-devel mailing list