[FFmpeg-devel] [PATCH 1/2] avutil/hwcontext_opencl: Fix missing linesize when map from opencl
Zhao Zhili
quinkblack at foxmail.com
Fri Feb 23 16:11:42 EET 2024
From: Zhao Zhili <zhilizhao at tencent.com>
---
libavutil/hwcontext_opencl.c | 1 +
1 file changed, 1 insertion(+)
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]);
--
2.42.0
More information about the ffmpeg-devel
mailing list