diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-25 01:43:26 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-23 14:47:49 +0200 |
commit | 6ba55e9652746382dddddadb9d91206e22e15939 (patch) | |
tree | d3795e9d7a1e218531027341fc33f707370c65ed /libavcodec/pthread.c | |
parent | 6564ab0e01609c580c5f9ebd05c0a403b2a956b2 (diff) | |
download | ffmpeg-6ba55e9652746382dddddadb9d91206e22e15939.tar.gz |
avcodec/libtheoraenc: Avoid copying data, allow user-supplied buffers
Here the packet size is known before allocating the packet because
the encoder provides said information (and works with internal buffers
itself), so one can use this information to avoid the implicit use of
another intermediate buffer for the packet data; and by switching to
ff_get_encode_buffer() one can also allow user-supplied buffers.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/pthread.c')
0 files changed, 0 insertions, 0 deletions