dav1d: limit the number of extra frames needed by the decoder
authorSteve Lhomme <robux4@ycbcr.xyz>
Mon, 21 Mar 2022 14:53:52 +0000 (15:53 +0100)
committerSebastian Ramacher <sramacher@debian.org>
Thu, 23 Jun 2022 08:39:09 +0000 (09:39 +0100)
commiteb5457c06de4bfc8be54a056a94ce0dffd9a7b7e
treeb81b269a5358906940c575de61164ad6b467e932
parentc53bf7c16c199ca0bec769031023f0f2670eb5a9
dav1d: limit the number of extra frames needed by the decoder

The i_extra_picture_buffers is used to add pictures to the pool that the core
will allocate. dav1d is actually using n_threads frames. And the core is
allocating 10 frames per default for AV1. So we need to add the missing ones.

(cherry picked from commit a32031dc0f5f32083fc54a21397bce732742ccbe) (rebased)
rebased:
- the code dav1d 1.0.0 in 3.0 uses different max versions

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Gbp-Pq: Name 0004-dav1d-limit-the-number-of-extra-frames-needed-by-the.patch
modules/codec/dav1d.c