From 61e06b95996eb4c51f576e68e00f2f1b69fc004e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=94=E5=BC=82?= Date: Mon, 8 Sep 2025 19:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A5=87=E6=95=B0=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E5=86=85=E5=AD=98=E8=B6=8A=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乔异 --- frameworks/innerkitsimpl/converter/src/post_proc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/innerkitsimpl/converter/src/post_proc.cpp b/frameworks/innerkitsimpl/converter/src/post_proc.cpp index f0202327b..412b7904c 100644 --- a/frameworks/innerkitsimpl/converter/src/post_proc.cpp +++ b/frameworks/innerkitsimpl/converter/src/post_proc.cpp @@ -1196,7 +1196,8 @@ bool PostProc::ScalePixelMapEx(const Size &desiredSize, PixelMap &pixelMap, cons desiredSize.width * ImageUtils::GetPixelBytes(imgInfo.pixelFormat); void *inBuf = nullptr; - if (srcWidth % HALF != 0 && pixelMap.GetAllocatorType() == AllocatorType::SHARE_MEM_ALLOC) { + if (srcWidth % HALF != 0 && + (pixelMap.GetAllocatorType() == AllocatorType::SHARE_MEM_ALLOC || pixelMap.GetNoPaddingUsage())) { // Workaround for crash on odd number width, caused by FFmpeg 5.0 upgrade uint64_t byteCount = static_cast(srcRowStride[0]) * static_cast(srcHeight); uint64_t allocSize = static_cast(srcWidth + 1) * static_cast(srcHeight) * -- Gitee