mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +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:
parent
35dc129940
commit
dcfc6089b1
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user