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:39:51 +0200 |
commit | 044daa7c450b132f4f5cdecb738089b3dd7db3f7 (patch) | |
tree | 8c346ed213c1972396ccc68cfcb918136bc7c27f /libavformat/id3v1.c | |
parent | c685249ff8596f215fbac1afdf654bef540c5113 (diff) | |
download | ffmpeg-044daa7c450b132f4f5cdecb738089b3dd7db3f7.tar.gz |
avcodec/libaomenc: 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/id3v1.c')
0 files changed, 0 insertions, 0 deletions