mirror of https://github.com/FFmpeg/FFmpeg.git
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> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>pull/362/head
parent
6ba55e9652
commit
d8e66ec1d7
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue