From: Zhao Zhili <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".