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>
Sun, 15 May 2022 11:47:10 +0000 (12:47 +0100)
commit81f6846be871fc7c9d5430c495c57e9e373ae36c
treea364fad396679e1428d8eb008e23debd6059fe3b
parent9df23ab2785cc125010a1075b6a8aef95d75ee43
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