1
0

avutil/hwcontext_opencl: Fix missing linesize when map from opencl

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili 2024-02-23 22:11:42 +08:00
parent 35dc129940
commit dcfc6089b1

View File

@ -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]);