mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 22:58:05 +02:00
radeonsi/uvd_enc: Skip extra padding bytes in output bitstream
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:
parent
aee1043227
commit
804ff19a5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue