AnsweredAssumed Answered

memcpy crashed after clEnqueueMapBuffer

Question asked by newjorchen on Dec 23, 2015

i am using the deprecated openvideo api to encode video in Radeon HD 7700(the driver is old version that can support openvideo). referred to online sample, it need to call clEnqueueMapBuffer to map the device memory to host memory, then call memcpy to copy input frame data to the memory region. when the resolution of input frame is 800x600 or 960x540, it can work well. however, when the resolution is 1024x768 or larger, it will crash at memcpy since over the region. could you help fix it?

Outcomes