diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 18:07:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:48 +0100 |
commit | 740b9ff44ee903d49b3586f2018097ee630a37a3 (patch) | |
tree | afec49bd9ff997a68d45023a3aa60182a91451e9 /libavcodec/internal.h | |
parent | dca0e4cd6157a3cb0e4d380d1c35e5da1c737315 (diff) | |
download | ffmpeg-740b9ff44ee903d49b3586f2018097ee630a37a3.tar.gz |
lavc: Redesign the internal encoding API.
The new API allows (optionally and on by default) using a internal buffer to encode, avoiding
the need to allocate large buffers or risking failure on too small buffers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 6578eb413f..fb2c0dbe56 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -70,6 +70,12 @@ typedef struct AVCodecInternal { */ int sample_count; #endif + + /** + * temporary buffer used for encoders to store their bitstream + */ + uint8_t *byte_buffer; + unsigned int byte_buffer_size; } AVCodecInternal; struct AVCodecDefault { |