avcodec/libdav1d: use a custom picture allocator
authorJames Almer <jamrial@gmail.com>
Tue, 12 Mar 2019 22:11:19 +0000 (19:11 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 12 Mar 2019 22:17:45 +0000 (19:17 -0300)
commit28746a0e2088d762817795a0833df8633d8be6d2
treeaeac93d80835eca64c9c5e5a75b2e2924312831b
parent2a31bf2a3507a311537721c39712fb318120595b
avcodec/libdav1d: use a custom picture allocator

Replaces the libdav1d internal allocator. It uses an AVBufferPool to reduce the
amount of allocated buffers.
About 5% speed up when decoding 720p or higher streams.

Reviewed-by: "Vittorio Giovara <vittorio.giovara@gmail.com>"
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/libdav1d.c