diff options
Diffstat (limited to 'testing/av_test.c')
-rw-r--r-- | testing/av_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/av_test.c b/testing/av_test.c index 04605468..7418a15a 100644 --- a/testing/av_test.c +++ b/testing/av_test.c | |||
@@ -358,7 +358,7 @@ static void *iterate_toxav(void *data) | |||
358 | 358 | ||
359 | static int send_opencv_img(ToxAV *av, uint32_t friend_number, const IplImage *img) | 359 | static int send_opencv_img(ToxAV *av, uint32_t friend_number, const IplImage *img) |
360 | { | 360 | { |
361 | int32_t strides[3] = { 1280, 640, 640 }; | 361 | int32_t strides[3] = { img->width, img->width / 2, img->width / 2 }; |
362 | uint8_t *planes[3] = { | 362 | uint8_t *planes[3] = { |
363 | (uint8_t *)malloc(img->height * img->width), | 363 | (uint8_t *)malloc(img->height * img->width), |
364 | (uint8_t *)malloc(img->height * img->width / 4), | 364 | (uint8_t *)malloc(img->height * img->width / 4), |