Re: [PATCH v2 00/11] staging: media: cedrus: assorted fixes and VP8 4K support

From: Nicolas Dufresne

Date: Mon Nov 30 2026 - 13:32:07 EST



On Mon, 09 Nov 2026 18:50:05 +0100, Jernej Skrabec wrote:
> This series fixes a number of bugs in the Cedrus driver, found while
> running the conformance suites and comparing with the vendor library,
> mostly on H616.
>
> Patches 1-10 are fixes:
> - patch 1 fixes MV-col buffer leak when the file handle is closed
> without STREAMOFF,
> - patches 2 and 7 reject H.264/HEVC SPS and VP8 frame sizes beyond the
> hardware limits, and fail jobs whose picture doesn't fit the buffers,
> preventing memory overruns and hardware hangs,
> - patch 3 marks H.264 long-term references, which fixes MR8_BT_B and
> MR9_BT_B conformance samples,
> - patches 4-6 fix MPEG-2 field picture decoding (field height, field
> order detection and references of the second field),
> - patch 8 enlarges VP8 probability table to the size used by the vendor
> libraries, since the hardware uses the area past it as scratch space,
> - patch 9 switches H616 to the 256-bit DDR mode, which fixes corrupted
> reference chroma in H.264 and VP8,
> - patch 10 clears the sizes of the H.264 DRAM buffers on start, which
> fixes a double free when a narrow H.264 stream follows a wide one on
> the same file handle.
>
> [...]

Applied, thanks!

[01/11] staging: media: cedrus: free MV-col buffers in buf_cleanup
commit: 6eff75d7d9f8f6752dbbf716a542bfc437039d5e
[02/11] staging: media: cedrus: reject too large H.264/HEVC SPS
commit: 36ab8e87241cd11bdc83f3797120e15aa1b504c2
[03/11] staging: media: cedrus: h264: mark long-term references in the frame info
commit: 7598dad4b50961e8a7dc442ea5d6c40ec5b3fd51
[04/11] staging: media: cedrus: mpeg2: use the field height for field pictures
commit: 628be510efec4a351383275676efb9f44a4fdfd6
[05/11] staging: media: cedrus: mpeg2: derive the field order of field pictures
commit: 359030d60d61f86ef3abbb47427a4695de1a1dc0
[06/11] staging: media: cedrus: mpeg2: fix the references of field pictures
commit: 8663f6fee9d241f4c71a0e8aa140178de1f8f2f4
[07/11] staging: media: cedrus: validate VP8 frame size
commit: 23379bb0a5a4532b719199cc99e966010b545849
[08/11] staging: media: cedrus: vp8: use the vendor probability table size
commit: 961e2e367dbe1a24ecb1e69bdb057527266dc657
[09/11] staging: media: cedrus: h616: use the 256-bit DDR mode
commit: d00c0bb41a067901cb5e2169c2c18bd0b53491bc
[10/11] staging: media: cedrus: h264: clear the DRAM buffer sizes on start
commit: a3132907339b705693df2c874ea97676669b159f
[11/11] staging: media: cedrus: vp8: support frames wider than 2048 pixels
commit: e923da6c35a0ee3206186e3cd1756c7eeb7b109d

Best regards,
--
Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>