Skip to content

frontends/va: Fix AV1 slice_data_offset with multiple slice data buffers

David Rosca requested to merge nowrep/mesa:va-decslice into main

What does this MR do and why?

frontends/va: Fix AV1 slice_data_offset with multiple slice data buffers

The slice parameter data offset refers to offset in the submitted data buffer.
When multiple slice data buffers are submitted, the offsets of all slices needs
to be adjusted to be based from the start of the first data buffer.

Cc: mesa-stable

Fixes decoding AV1-TEST-VECTORS/av1-1-b8-22-svc-L1T2 with ffmpeg.

Related ffmpeg patch: https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=11609

Merge request reports