From cc7465bec1ab0b12ca79758807788e4ac8fad765 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 23 Jun 2015 11:57:57 +0200 Subject: Increase pixel buffer This is necessary because we get more rows (until index 1088) than what should be possible by the sensor. --- test/ipedec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ipedec.c b/test/ipedec.c index 7baa522..5099ff3 100644 --- a/test/ipedec.c +++ b/test/ipedec.c @@ -8,7 +8,7 @@ #include #include "timer.h" -static const int MAX_ROWS = 3840; +static const int MAX_ROWS = 3841; typedef struct { int clear_frame; @@ -167,7 +167,7 @@ process_file(const char *filename, Options *opts) } timer = timer_new (); - pixels = (uint16_t *) malloc (opts->num_columns * opts->num_rows * sizeof(uint16_t)); + pixels = (uint16_t *) malloc (opts->num_columns * MAX_ROWS * sizeof(uint16_t)); n_frames = 0; old_time_stamp = 0; -- cgit v1.2.3