mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:10:56 +01:00
fixup! lavu: add RKMPP hwcontext
fix fully-planar alignment again. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
f22278710e
commit
b81c3bf1c4
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue