aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-25 01:43:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-23 14:47:49 +0200
commit6ba55e9652746382dddddadb9d91206e22e15939 (patch)
treed3795e9d7a1e218531027341fc33f707370c65ed /libavcodec/pthread.c
parent6564ab0e01609c580c5f9ebd05c0a403b2a956b2 (diff)
downloadffmpeg-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