[aravis] fake: fix a crash for not square images.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] fake: fix a crash for not square images.
- Date: Wed, 19 May 2010 08:35:18 +0000 (UTC)
commit 3feb92f51f398bf180cec7be1483a266e30a4ca2
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed May 19 04:39:19 2010 -0400
fake: fix a crash for not square images.
src/arvfakecamera.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvfakecamera.c b/src/arvfakecamera.c
index 6dbd5ac..1338b0f 100644
--- a/src/arvfakecamera.c
+++ b/src/arvfakecamera.c
@@ -165,7 +165,7 @@ arv_fake_camera_fill_buffer (ArvFakeCamera *camera, ArvBuffer *buffer)
for (y = 0; y < height; y++)
for (x = 0; x < width; x++)
- ((char *) buffer->data)[y * height + x] = (x + buffer->frame_id + y) % 255;
+ ((char *) buffer->data)[y * width + x] = (x + buffer->frame_id + y) % 255;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]