shithub: openh264

Download patch

ref: 563376df0c45ce1cc26200a36d99526c9943f2ba
parent: 4fec6d581e6f3d2568680a3a0e507e784b11958b
author: Sindre Aamås <[email protected]>
date: Wed May 25 10:15:13 EDT 2016

[UT] Test downsampling routines with a wider variety of height ratios

--- a/test/processing/ProcessUT_DownSample.cpp
+++ b/test/processing/ProcessUT_DownSample.cpp
@@ -302,7 +302,7 @@
     src_width_c = src_width_a = 320; \
     src_height_c = src_height_a = 180; \
     dst_width_c = dst_width_a = (src_width_c >> (i + 1)) + rand() % (src_width_c >> (i + 1)); \
-    dst_height_c = dst_height_a = 160; \
+    dst_height_c = dst_height_a = (src_height_c >> (i + 1)) + rand() % (src_height_c >> (i + 1)); \
     for (int j = 0; j < 70000; j++) { \
       dst_c[j] = dst_a[j] = rand() % 256; \
       src_c[j] = src_a[j] = rand() % 256; \