[FFmpeg-devel] [PATCH] encode_video2: shrink packet after encoding.

Michael Niedermayer michaelni at gmx.at
Wed Feb 29 16:46:15 CET 2012

On Wed, Feb 29, 2012 at 02:48:52PM +0100, Nicolas George wrote:
> The with the encode2 API, encoders allocate huge packets to be
> sure they have enough room (a typical case is mpeg4, which allocs
> ~10M for 1280x768 yuv420p) but only actually use a very small part
> of the buffer.
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavcodec/utils.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120229/197ba27f/attachment.asc>

More information about the ffmpeg-devel mailing list