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:50:46 +0200 |
commit | 3280c6f938c8b16254bfb68af54089af467274c5 (patch) | |
tree | e90ee0f0e0b188be31f5471b23bf157e4530f1d6 /libavformat/concatdec.c | |
parent | d8e66ec1d7233541fd84205cb10e8e6ff87167de (diff) | |
download | ffmpeg-3280c6f938c8b16254bfb68af54089af467274c5.tar.gz |
avcodec/libvpxenc: 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>
Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/concatdec.c')
0 files changed, 0 insertions, 0 deletions