You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/12/20 09:00:53 UTC
[nuttx] 03/03: drivers/video: fix typo
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 2b11fd585fc173a7969c35c1767caa1be757b658
Author: Peter Bee <bi...@xiaomi.com>
AuthorDate: Tue Dec 20 15:14:43 2022 +0800
drivers/video: fix typo
Wrong buf used
Signed-off-by: Peter Bee <bi...@xiaomi.com>
---
drivers/video/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/video.c b/drivers/video/video.c
index 88e86830e1..110012e4e4 100644
--- a/drivers/video/video.c
+++ b/drivers/video/video.c
@@ -1276,7 +1276,7 @@ static int video_qbuf(FAR struct video_mng_s *vmng,
container->buf.length = get_bufsize(&type_inf->fmt[VIDEO_FMT_MAIN]);
container->buf.m.userptr = (unsigned long)(type_inf->bufheap +
- buf->length * buf->index);
+ container->buf.length * buf->index);
}
video_framebuff_queue_container(&type_inf->bufinf, container);