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:03:37 +0200 |
commit | 4085cfc94474db9bda90f7ac21be3ed0ac4da702 (patch) | |
tree | dadc40adf3b5e6bf573a1fa55f818ace53fa3160 /libavfilter/vsrc_sierpinski.c | |
parent | a4b334327895f17211b4bbbc19ebab41a7aa35dc (diff) |
avcodec/libxavs: Avoid overallocating, copying packet data
When the packet size is known in advance like here, one can avoid
an intermediate buffer for the packet data; also, there is no reason
to add AV_INPUT_BUFFER_MIN_SIZE to the packet size any more, as the
actually needed packet size can be easily calculated: It is three bytes
more than the raw nal size per NALU.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vsrc_sierpinski.c')
0 files changed, 0 insertions, 0 deletions