# Pastebin A2vFWxmh frame->buf[0] = av_buffer_create((char *)avbuf->plane_info[0].mm_addr + avbuf->planes[0].data_offset, avbuf->plane_info[0].bytesperline * avbuf->context->format.fmt.pix.height, v4l2_free_buffer, avbuf, 0); frame->buf[1] = av_buffer_create((char *)avbuf->plane_info[0].mm_addr + avbuf->planes[0].data_offset + avbuf->plane_info[0].bytesperline * avbuf->context->format.fmt.pix.height, avbuf->plane_info[0].bytesperline * avbuf->context->format.fmt.pix.height / 4, v4l2_free_buffer, avbuf, 0); frame->buf[2] = av_buffer_create((char *)avbuf->plane_info[0].mm_addr + avbuf->planes[0].data_offset + avbuf->plane_info[0].bytesperline * avbuf->context->format.fmt.pix.height * 5/4, avbuf->plane_info[0].bytesperline * avbuf->context->format.fmt.pix.height / 4 v4l2_free_buffer, avbuf, 0);