diff mbox series

[FFmpeg-devel,1/2] avutil/hwcontext_opencl: Fix missing linesize when map from opencl

Message ID tencent_F870F82D719A8640309A5F9F76ABDB4E6308@qq.com
State Accepted
Commit dcfc6089b1ea06fdcdf7778b881406b929a83cba
Headers show
Series [FFmpeg-devel,1/2] avutil/hwcontext_opencl: Fix missing linesize when map from opencl | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Zhao Zhili Feb. 23, 2024, 2:11 p.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

---
 libavutil/hwcontext_opencl.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
index c1764ed098..de093fffb1 100644
--- a/libavutil/hwcontext_opencl.c
+++ b/libavutil/hwcontext_opencl.c
@@ -2014,6 +2014,7 @@  static int opencl_map_frame(AVHWFramesContext *hwfc, AVFrame *dst,
         }
 
         dst->data[p] = map->address[p];
+        dst->linesize[p] = row_pitch;
 
         av_log(hwfc, AV_LOG_DEBUG, "Map plane %d (%p -> %p).\n",
                p, src->data[p], dst->data[p]);