summaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 18:07:57 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:48 +0100
commit740b9ff44ee903d49b3586f2018097ee630a37a3 (patch)
treeafec49bd9ff997a68d45023a3aa60182a91451e9 /libavcodec/internal.h
parentdca0e4cd6157a3cb0e4d380d1c35e5da1c737315 (diff)
downloadffmpeg-streaming-740b9ff44ee903d49b3586f2018097ee630a37a3.zip
ffmpeg-streaming-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 6578eb4..fb2c0db 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 {
OpenPOWER on IntegriCloud