During the migration from DeepStream 6.3 to 6.4, the dataSize attribute of surface->surfaceList[frame_meta->batch_id] changed

if pitch is not equal to width, you need to remove the padding part. please refer to this faq for how to dump nv12 nvbufsurface. please refer to this topic for how to dump by opencv.