From 0d6496886cae22f33408bd126925b5d6c4908d65 Mon Sep 17 00:00:00 2001 From: kkitayam <45088311+kkitayam@users.noreply.github.com> Date: Sat, 25 Sep 2021 20:49:04 +0900 Subject: Change frame buffer management --- src/class/video/video_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/class') diff --git a/src/class/video/video_device.c b/src/class/video/video_device.c index 344c4e0f9..ad7057d30 100644 --- a/src/class/video/video_device.c +++ b/src/class/video/video_device.c @@ -128,9 +128,9 @@ static video_probe_and_commit_control_t const def_stm_settings = { .wCompWindowSize = 1, /* Maybe it is match to GOP size */ .wDelay = 240, /* milliseconds */ .dwMaxVideoFrameSize = 128 * 96 * 12 / 8, - .dwMaxPayloadTransferSize = 256, /* Maybe it is the maximum packet size under this settings */ + .dwMaxPayloadTransferSize = ((128 * 96 * 12 / 8 * 10) + 999) / 1000 + 2, .dwClockFrequency = 27000000, /* same as MPEG-2 system time clock */ - .bmFramingInfo = 0, + .bmFramingInfo = 0x3, .bPreferedVersion = 1, .bMinVersion = 1, .bMaxVersion = 1, -- cgit v1.3.1