fixup! lavu: add RKMPP hwcontext

fix fully-planar alignment again.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka
2024-11-23 16:40:02 +08:00
parent f22278710e
commit b81c3bf1c4

View File

@@ -182,7 +182,7 @@ static int rkmpp_get_aligned_linesize(enum AVPixelFormat pix_fmt, int width, int
const int pixel_width = av_get_padded_bits_per_pixel(pixdesc) / 8;
linesize = FFALIGN(linesize / pixel_width, 8) * pixel_width;
} else if (is_yuv && is_fully_planar) {
linesize = FFALIGN(linesize, 8);
linesize = FFALIGN(linesize, 16 >> (plane ? pixdesc->log2_chroma_w : 0));
} else
linesize = FFALIGN(linesize, 64);