mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-09-26 21:03:43 +08:00
fixup! lavu: add RKMPP hwcontext
fix width stride align 16 of rgb24 in rga3. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -183,7 +183,7 @@ static int rkmpp_get_aligned_linesize(enum AVPixelFormat pix_fmt, int width, int
|
||||
|
||||
if (is_packed_fmt) {
|
||||
const int pixel_width = av_get_padded_bits_per_pixel(pixdesc) / 8;
|
||||
linesize = FFALIGN(linesize / pixel_width, 8) * pixel_width;
|
||||
linesize = FFALIGN(linesize / pixel_width, 16) * pixel_width;
|
||||
} else if (is_yuv && is_fully_planar) {
|
||||
linesize = FFALIGN(linesize, 16 >> (plane ? pixdesc->log2_chroma_w : 0));
|
||||
} else
|
||||
|
Reference in New Issue
Block a user