diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-10-07 19:46:45 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-10-07 19:46:45 +0100 |
commit | b36dba05776175f3dfa4fe28263220358d895ff0 (patch) | |
tree | c849f29c5d0ff4169d7d37278967a393fcebc3fb /tests | |
parent | dc35816c9885b862877cfb46a5a29069d7c11ec7 (diff) |
tests: fix video overlay_composition_premultiplied_alpha test on big-endian machines
The unit test was checking for alpha at the wrong position.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/libs/video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/check/libs/video.c b/tests/check/libs/video.c index fe8177fa5..d33fab224 100644 --- a/tests/check/libs/video.c +++ b/tests/check/libs/video.c @@ -1128,10 +1128,10 @@ GST_START_TEST (test_overlay_composition_premultiplied_alpha) fail_unless_equals_int (data5[3], 0x80); #else /* A - R - G - B */ - fail_unless_equals_int (data5[0], 0x40); + fail_unless_equals_int (data5[0], 0x80); fail_unless_equals_int (data5[1], 0x40); fail_unless_equals_int (data5[2], 0x40); - fail_unless_equals_int (data5[3], 0x80); + fail_unless_equals_int (data5[3], 0x40); #endif gst_buffer_unmap (pix5, &map); @@ -1163,10 +1163,10 @@ GST_START_TEST (test_overlay_composition_premultiplied_alpha) fail_unless_equals_int (data7[3], 0x80); #else /* A - R - G - B */ - fail_unless_equals_int (data7[0], 0x40); + fail_unless_equals_int (data7[0], 0x80); fail_unless_equals_int (data7[1], 0x40); fail_unless_equals_int (data7[2], 0x40); - fail_unless_equals_int (data7[3], 0x80); + fail_unless_equals_int (data7[3], 0x40); #endif gst_buffer_unmap (pix7, &map); |