Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong frame size #2

Open
yshteinm opened this issue Apr 20, 2020 · 0 comments
Open

Wrong frame size #2

yshteinm opened this issue Apr 20, 2020 · 0 comments

Comments

@yshteinm
Copy link

yshteinm commented Apr 20, 2020

In UVCPreview.cpp function
void UVCPreview::uvc_preview_frame_callback(uvc_frame_t *frame, void *vptr_args)
you do the check
if (UNLIKELY(
((frame->frame_format != UVC_FRAME_FORMAT_MJPEG) && (frame->actual_bytes < preview->frameBytes))
|| (frame->width != preview->frameWidth) || (frame->height != preview->frameHeight) ))

The problem that in case of "frame_format" equal UVC_FRAME_FORMAT_I420 the "actual_bytes" is not equal "frameBytes" but it is not MJPEG format so the function returns without continue getting or adding any frames below

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

No branches or pull requests

1 participant