[FFmpeg-devel] [PATCH] avcodec/internal: improve min_size documentation for ff_alloc_packet2()

Michael Niedermayer michael at niedermayer.cc
Mon Aug 3 23:45:51 CEST 2015


On Mon, Aug 03, 2015 at 10:45:52PM +0200, wm4 wrote:
> On Mon, 3 Aug 2015 17:33:15 -0300
> James Almer <jamrial at gmail.com> wrote:
> 
> > On 03/08/15 5:05 PM, wm4 wrote:
> > > - we'll probably see a flood of commits changing random encoders to
> > >   this new function, for no reason (I'm looking forward to be proven
> > >   wrong)
> > 
> > ff_alloc_packet() is marked as deprecated. I wouldn't find it odd at
> > all if maintainers for different encoders make the switch if only to
> > silence the warning.
> > So if anyone does it, it most likely wont be "for no reason".
> 
> OK, but why was ff_alloc_packet2() introduced?

because it was faster in the tests i did back then.
it certainly is not faster for all encoders, and id like to find out
for which encoders its better and for which its not and adjust them
accordingly.
Or if it turns out not to be usefull for any encoders anymore then
it could also be dropped, or rather we could drop min_size and
the "static" buffer alloc code but leave the context for av_log

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150803/72d827b3/attachment.sig>


More information about the ffmpeg-devel mailing list