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 15:15:57 +0200 |
commit | 250d8661abdbe2929bfef17e699adfab10a9c67c (patch) | |
tree | a09a41189580e646cc702d4d4e37da7919a57cc2 /libavfilter/generate_wave_table.h | |
parent | aaefb84b04a8a8d40b3d23ce4f0b0c92b093ddb9 (diff) | |
download | ffmpeg-250d8661abdbe2929bfef17e699adfab10a9c67c.tar.gz |
avcodec/pngenc: Avoid copying APNG data, allow user-supplied buffer
The APNG encoder already uses internal buffers, so that the packet size
is already known before allocating the packet; therefore one can avoid
another (implicit) intermediate buffer by switching to
ff_get_encode_buffer(), thereby also supporting user-supplied buffers.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/generate_wave_table.h')
0 files changed, 0 insertions, 0 deletions