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> Reviewed-by: James Zern <jzern@google.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>pull/362/head
parent
d8e66ec1d7
commit
3280c6f938
1 changed files with 6 additions and 3 deletions
Loading…
Reference in new issue