Skip to content

Fill v4l2_buffer.length for multi-planar API in qbuf#56

Merged
Gnurou merged 1 commit into
Gnurou:masterfrom
rosetta-jpn:Fill-length
Jan 20, 2026
Merged

Fill v4l2_buffer.length for multi-planar API in qbuf#56
Gnurou merged 1 commit into
Gnurou:masterfrom
rosetta-jpn:Fill-length

Conversation

@rosetta-jpn

Copy link
Copy Markdown
Contributor

No description provided.

@rosetta-jpn

Copy link
Copy Markdown
Contributor Author

Hi @Gnurou could you review this PR? Thanks.

@Gnurou

Gnurou commented Jan 17, 2026

Copy link
Copy Markdown
Owner

Hi Hiro, sorry for the delay.

I'm actually surprised the code even worked at all without this - did you have a concrete failure that made you realize this was needed?

@rosetta-jpn

Copy link
Copy Markdown
Contributor Author

No, a v4l2 driver on my device is working without this change.
My guess is that most v4l2 drivers accesses data with the correct number of planes for the format set by S_FMT.
I found this when looking the v4l2 verbose log.

@Gnurou

Gnurou commented Jan 20, 2026

Copy link
Copy Markdown
Owner

The V4L2 API can be tricky at times so I would have liked a concrete proof that this fixes something, but looking at it I don't see how this could not be correct. Merging, thanks!

@Gnurou Gnurou merged commit 7d4701d into Gnurou:master Jan 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants