diff options
author | Mikhael-Danilov <mikhael.danilov@gmail.com> | 2016-11-10 14:05:46 -0500 |
---|---|---|
committer | Mikhael-Danilov <mikhael.danilov@gmail.com> | 2016-11-12 20:10:56 +0300 |
commit | 06ad5613bc5b4a70a1553430eefafeccf9efbe5c (patch) | |
tree | 07e2bca28fd45d3a69130aaf94429a0e918939da /testing | |
parent | 8bbde23f48eca2f51d56437fdce29c9443e21cb1 (diff) |
Support arbitrary video resolutions in av_test
Diffstat (limited to 'testing')
-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), |