From 06ad5613bc5b4a70a1553430eefafeccf9efbe5c Mon Sep 17 00:00:00 2001 From: Mikhael-Danilov Date: Thu, 10 Nov 2016 14:05:46 -0500 Subject: Support arbitrary video resolutions in av_test --- testing/av_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing') 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) static int send_opencv_img(ToxAV *av, uint32_t friend_number, const IplImage *img) { - int32_t strides[3] = { 1280, 640, 640 }; + int32_t strides[3] = { img->width, img->width / 2, img->width / 2 }; uint8_t *planes[3] = { (uint8_t *)malloc(img->height * img->width), (uint8_t *)malloc(img->height * img->width / 4), -- cgit v1.2.3