[FFmpeg-cvslog] tests/checkasm/vf_colorspace: Fix dst array sizes

Michael Niedermayer git at videolan.org
Tue Apr 12 23:48:00 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Apr 12 23:40:07 2016 +0200| [4d59d075a96c7bc9fc7a118f96015fbf5156708a] | committer: Michael Niedermayer

tests/checkasm/vf_colorspace: Fix dst array sizes

Suggested & Approved by: BBB
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d59d075a96c7bc9fc7a118f96015fbf5156708a
---

 tests/checkasm/vf_colorspace.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/checkasm/vf_colorspace.c b/tests/checkasm/vf_colorspace.c
index fcbb62a..9ac841c 100644
--- a/tests/checkasm/vf_colorspace.c
+++ b/tests/checkasm/vf_colorspace.c
@@ -207,12 +207,12 @@ static void check_rgb2yuv(void)
     LOCAL_ALIGNED_32(int16_t, src_u, [W * H * 2]);
     LOCAL_ALIGNED_32(int16_t, src_v, [W * H * 2]);
     int16_t *src[3] = { src_y, src_u, src_v };
-    LOCAL_ALIGNED_32(uint8_t, dst0_y, [W * H]);
-    LOCAL_ALIGNED_32(uint8_t, dst0_u, [W * H]);
-    LOCAL_ALIGNED_32(uint8_t, dst0_v, [W * H]);
-    LOCAL_ALIGNED_32(uint8_t, dst1_y, [W * H]);
-    LOCAL_ALIGNED_32(uint8_t, dst1_u, [W * H]);
-    LOCAL_ALIGNED_32(uint8_t, dst1_v, [W * H]);
+    LOCAL_ALIGNED_32(uint8_t, dst0_y, [W * H * 2]);
+    LOCAL_ALIGNED_32(uint8_t, dst0_u, [W * H * 2]);
+    LOCAL_ALIGNED_32(uint8_t, dst0_v, [W * H * 2]);
+    LOCAL_ALIGNED_32(uint8_t, dst1_y, [W * H * 2]);
+    LOCAL_ALIGNED_32(uint8_t, dst1_u, [W * H * 2]);
+    LOCAL_ALIGNED_32(uint8_t, dst1_v, [W * H * 2]);
     uint8_t *dst0[3] = { dst0_y, dst0_u, dst0_v }, *dst1[3] = { dst1_y, dst1_u, dst1_v };
     LOCAL_ALIGNED_32(int16_t, offset, [8]);
     LOCAL_ALIGNED_32(int16_t, coeff_buf, [3 * 3 * 8]);



More information about the ffmpeg-cvslog mailing list