radeonsi/uvd_enc: Skip extra padding bytes in output bitstream
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Trailing zeroes should be harmless, but it seems to cause issues with
latest ffmpeg (which looks like an ffmpeg bug).
The extra bytes are useless, so we can just skip them like we already
do on VCN to workaround it.

Cc: mesa-stable
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41485>
This commit is contained in:
David Rosca 2026-05-11 16:12:20 +02:00 committed by Marge Bot
parent aee1043227
commit 804ff19a5a

View file

@ -1082,7 +1082,7 @@ static void radeon_uvd_enc_get_feedback(struct pipe_video_codec *encoder, void *
enc->ws, fb->res->buf, NULL, PIPE_MAP_READ_WRITE | RADEON_MAP_TEMPORARY);
if (!fb_data->status)
*size = fb_data->bitstream_size;
*size = fb_data->bitstream_size - fb_data->extra_bytes;
else
*size = 0;