mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
tests: fix video overlay_composition_premultiplied_alpha test on big-endian machines
The unit test was checking for alpha at the wrong position.
This commit is contained in:
parent
dc35816c98
commit
b36dba0577
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue