[FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

Guo, Yejun yejun.guo at intel.com
Thu Mar 4 13:45:46 EET 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Anton
> Khirnov
> Sent: 2021年3月4日 17:45
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref
> private_ref when frame leaves libavfilter
> 
> Quoting Guo, Yejun (2021-03-04 09:48:14)
> > Hi, I think option 2 might be the good choice for now.
> 
> Given past experience, I am very much not a fan of "for now" solutions.
> They tend to ossify and remain in place for years (I have seen at least one
> "//temporary hack" remain unchanged for over 10 years). Then further hacks
> are grown on these "for now" solutions and they become very hard to change
> or remove.
> 
> So I would strongly prefer that you spend the effort now to design a proper
> future-proof solution (most likely side data based). If it turns out to need some
> change later, then there's plenty of precedent for changing API.
> 

Agree, side data based solution is what we will finally use, and also my original code.

There's no industry standard which defines the specification of bounding box.
And I've tried my best for the design, investigated models, designed the structs and also 
refined it with feedback from community.


More information about the ffmpeg-devel mailing list