From 1f25fc0ae417bfc47dea4966cb5e43689aa88d5c Mon Sep 17 00:00:00 2001 From: mannol Date: Fri, 26 Aug 2016 22:47:19 +0200 Subject: Fix plane size calculation in test --- auto_tests/toxav_many_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auto_tests/toxav_many_test.c') diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c index 5421284b..cd9d514c 100644 --- a/auto_tests/toxav_many_test.c +++ b/auto_tests/toxav_many_test.c @@ -164,8 +164,8 @@ void *call_thread(void *pd) int16_t *PCM = calloc(960, sizeof(int16_t)); uint8_t *video_y = calloc(800 * 600, sizeof(uint8_t)); - uint8_t *video_u = calloc(800 * 600 / 2, sizeof(uint8_t)); - uint8_t *video_v = calloc(800 * 600 / 2, sizeof(uint8_t)); + uint8_t *video_u = calloc(800 * 600 / 4, sizeof(uint8_t)); + uint8_t *video_v = calloc(800 * 600 / 4, sizeof(uint8_t)); time_t start_time = time(NULL); -- cgit v1.2.3