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-05 12:31:09 +0200 |
commit | 6c69251b038944b4deee4e5fa7dd32b78492ae60 (patch) | |
tree | 5d85a676bd001745166881b24b967256c4b09e47 /libavformat/3dostr.c | |
parent | 1106f206453b8ab29f5b6972522def49d08e6288 (diff) | |
download | ffmpeg-6c69251b038944b4deee4e5fa7dd32b78492ae60.tar.gz |
avcodec/bmpenc: Avoid copying packet data, allow user-supplied buffers
When the packet size is known in advance like here, one can avoid
an intermediate buffer for the packet data; this also makes it easy
to allow user-supplied buffers. Only one thing needed to be changed:
One can no longer use a pointer to uint16_t for the destination buffer
because its alignment is unknown.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/3dostr.c')
0 files changed, 0 insertions, 0 deletions