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:
parent
f62ab13295
commit
c375c18fc3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue