You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avutil/hwcontext_opencl: Fix missing linesize when map from opencl
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user