VideoWindow consumer: Fix connection

* The integer overflowed for some reason.
* Fixes #9439.
This commit is contained in:
Dario Casalinuovo 2016-04-05 00:30:38 +02:00
parent a0b3904a33
commit 16732ae7a4

View File

@ -207,8 +207,8 @@ VideoNode::AcceptFormat(const media_destination &dst, media_format *format)
// or the requested colorspace if not B_YCbCr422
// and we need to tell the node upstream of our choice
BRect frame(0, 0, format->u.raw_video.display.line_width - 1,
format->u.raw_video.display.line_count - 1);
BRect frame(0, 0, format->u.raw_video.display.line_width,
format->u.raw_video.display.line_count);
DeleteBuffers();
status_t err;