1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-26 06:05:05 +03:00

uvc: really use dwMaxVideoFrameBufferSize on uvc_set_frame

This commit is contained in:
Michael Grzeschik 2024-09-24 23:27:59 +02:00
parent f62ab13295
commit c375c18fc3

View file

@ -1049,7 +1049,7 @@ static int uvc_set_frame(char *format_path, const char *format, const struct usb
if (ret != USBG_SUCCESS)
return ret;
ret = usbg_write_dec(frame_path, frame_name, "dwMaxVideoFrameBufferSize", attrs->wHeight * attrs->wWidth);
ret = usbg_write_dec(frame_path, frame_name, "dwMaxVideoFrameBufferSize", attrs->dwMaxVideoFrameBufferSize);
if (ret != USBG_SUCCESS)
return ret;