This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit ffe0104574c4ebe88a0d6fdb4fb58489ce6565c5 Author: Niklas Haas <[email protected]> AuthorDate: Fri Jun 26 13:19:10 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Fri Jun 26 21:54:47 2026 +0000 avutil/hwcontext_cuda: fix off-by-one in cuda_transfer_data() Height of the chroma plane was computed using a naive right shift instead of AV_CEIL_RSHIFT, leading to the last line of chroma being uncopied. Signed-off-by: Niklas Haas <[email protected]> --- libavutil/hwcontext_cuda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c index c57ea4bb7a..6342683a17 100644 --- a/libavutil/hwcontext_cuda.c +++ b/libavutil/hwcontext_cuda.c @@ -261,7 +261,7 @@ static int cuda_transfer_data(AVHWFramesContext *ctx, AVFrame *dst, .srcPitch = src->linesize[i], .dstPitch = dst->linesize[i], .WidthInBytes = FFMIN(src->linesize[i], dst->linesize[i]), - .Height = src->height >> ((i == 0 || i == 3) ? 0 : priv->shift_height), + .Height = AV_CEIL_RSHIFT(src->height, ((i == 0 || i == 3) ? 0 : priv->shift_height)), }; if (src->hw_frames_ctx) { _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
