[FFmpeg-devel] [PATCH] document and implement buffer padding with CODEC_CAP_SMALL_LAST_FRAME

Michael Niedermayer michaelni
Tue Aug 24 15:19:54 CEST 2010


On Mon, Aug 23, 2010 at 05:49:57PM -0400, Justin Ruggles wrote:
> Hi,
> 
> For audio encoders that can handle a small last frame, the user still
> needs to supply a full frame of valid samples, padded with either zeros
> or some other meaningful data.  This is because some codecs have fixed
> frame sizes, and if CODEC_CAP_SMALL_LAST_FRAME is set then padding is
> preferable to truncation.

the core could detect the last frame, allocate a full one and pad with what
is most efficient, instead of apps duplicating this code

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

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100824/5662303f/attachment.pgp>



More information about the ffmpeg-devel mailing list