]> git.sesse.net Git - nageru/commitdiff
Add an extra byte of headroom to the buffer so that overlong frames are not treated...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 16 Nov 2015 21:46:45 +0000 (22:46 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 16 Nov 2015 21:46:45 +0000 (22:46 +0100)
mixer.cpp

index 936a070129352c4b10a80747e740be1e1ebb2dd0..db5980d2d79bbdf30d3b005bd3394644120309a3 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -107,7 +107,7 @@ Mixer::Mixer(const QSurfaceFormat &format, unsigned num_cards)
                CaptureCard *card = &cards[card_index];
                card->usb = new BMUSBCapture(card_index);
                card->usb->set_frame_callback(bind(&Mixer::bm_frame, this, card_index, _1, _2, _3, _4, _5, _6, _7));
-               card->frame_allocator.reset(new PBOFrameAllocator(WIDTH * (HEIGHT+EXTRAHEIGHT) * 2 + 44, WIDTH, HEIGHT));
+               card->frame_allocator.reset(new PBOFrameAllocator(WIDTH * (HEIGHT+EXTRAHEIGHT) * 2 + 44 + 1, WIDTH, HEIGHT));
                card->usb->set_video_frame_allocator(card->frame_allocator.get());
                card->surface = create_surface(format);
                card->usb->set_dequeue_thread_callbacks(