diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-30 01:57:13 +0200 |
---|---|---|
committer | Rick Kern <kernrj@gmail.com> | 2021-05-06 00:29:36 -0400 |
commit | 7539a01bb0ea24998e1aa87706edf9785ddd3ac6 (patch) | |
tree | c0d99242c5647034774d342bdbbb2412a2a91fea /libavutil/mathematics.h | |
parent | e10d75610c62fcc42ad8931a09abc73ee82caf82 (diff) | |
download | ffmpeg-7539a01bb0ea24998e1aa87706edf9785ddd3ac6.tar.gz |
avcodec/videotoolboxenc: 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 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.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavutil/mathematics.h')
0 files changed, 0 insertions, 0 deletions