summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-06-23 11:57:57 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-06-23 13:59:46 +0200
commitcc7465bec1ab0b12ca79758807788e4ac8fad765 (patch)
treec942d3dc487bd6e8b326ac257ec944231349d299 /test
parentc5a6a0f3eb3ca7002813c23e8c2f243ead06a2b8 (diff)
downloadufodecode-cc7465bec1ab0b12ca79758807788e4ac8fad765.tar.gz
ufodecode-cc7465bec1ab0b12ca79758807788e4ac8fad765.tar.bz2
ufodecode-cc7465bec1ab0b12ca79758807788e4ac8fad765.tar.xz
ufodecode-cc7465bec1ab0b12ca79758807788e4ac8fad765.zip
Increase pixel buffer
This is necessary because we get more rows (until index 1088) than what should be possible by the sensor.
Diffstat (limited to 'test')
-rw-r--r--test/ipedec.c4
1 files changed, 2 insertions, 2 deletions
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 <ufodecode.h>
#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;