diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2024-02-23 22:11:42 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2024-03-01 17:23:50 +0800 |
commit | dcfc6089b1ea06fdcdf7778b881406b929a83cba (patch) | |
tree | 144124637ff04bc0b78c03cb199e7e866349677c /libavutil | |
parent | 35dc129940246088d376e5c343b8076ffbea2b64 (diff) | |
download | ffmpeg-dcfc6089b1ea06fdcdf7778b881406b929a83cba.tar.gz |
avutil/hwcontext_opencl: Fix missing linesize when map from opencl
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/hwcontext_opencl.c | 1 |
1 files changed, 1 insertions, 0 deletions
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]); |