mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
fixup! lavu: add RKMPP hwcontext
Enlarge the buffer size a little bit to fix a corner case issue in RGA AFBC 8K cropping and MPP encoder. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
f508e46403
commit
30b1033ec4
1 changed files with 2 additions and 2 deletions
|
|
@ -185,8 +185,8 @@ static AVBufferRef *rkmpp_drm_pool_alloc(void *opaque, size_t size)
|
|||
int i;
|
||||
const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(hwfc->sw_format);
|
||||
const int bits_pp = av_get_padded_bits_per_pixel(pixdesc);
|
||||
const int aligned_w = FFALIGN(hwfc->width * 6 / 5, 64);
|
||||
const int aligned_h = FFALIGN(hwfc->height * 6 / 5, 64);
|
||||
const int aligned_w = FFALIGN(hwfc->width * 5 / 4, 64);
|
||||
const int aligned_h = FFALIGN(hwfc->height * 5 / 4, 64);
|
||||
|
||||
MppBuffer mpp_buf = NULL;
|
||||
size_t mpp_buf_size = aligned_w * aligned_h * bits_pp / 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue