diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2020-09-04 02:38:58 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-10-03 15:42:35 +0100 |
commit | 77970f500d6d8d7a772917794393a9c88febe008 (patch) | |
tree | b0e0e8befa705b0520cf8b7eb55a76b55315e6c8 /tests | |
parent | 85ae566b00177c845680bf9ab32fbf3f40af9f4c (diff) | |
download | gstreamer-plugins-bad-77970f500d6d8d7a772917794393a9c88febe008.tar.gz |
line21enc: heavily constrain video height
We can only determine a correct placement for the CC line
with:
* height == 525 (standard NTSC, line 21 / 22)
* height == 486 (NTSC usable lines + 6 lines for VBI, line 1 / 2)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1637>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/line21.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/check/elements/line21.c b/tests/check/elements/line21.c index 02547ec5a..2a507fa94 100644 --- a/tests/check/elements/line21.c +++ b/tests/check/elements/line21.c @@ -33,12 +33,12 @@ GST_START_TEST (basic) GstVideoInfo info; GstVideoCaptionMeta *in_cc_meta, *out_cc_meta; guint i; - guint8 empty_data[] = { 0x90, 0x80, 0x80, 0x0, 0x80, 0x80 }; - guint8 full_data[] = { 0x90, 0x42, 0x43, 0x0, 0x44, 0x45 }; + guint8 empty_data[] = { 0x8c, 0x80, 0x80, 0x0, 0x80, 0x80 }; + guint8 full_data[] = { 0x8c, 0x42, 0x43, 0x0, 0x44, 0x45 }; GstCaps *caps = gst_caps_new_simple ("video/x-raw", "format", G_TYPE_STRING, "I420", "width", G_TYPE_INT, 720, - "height", G_TYPE_INT, 625, + "height", G_TYPE_INT, 525, "interlace-mode", G_TYPE_STRING, "interleaved", NULL); @@ -62,7 +62,7 @@ GST_START_TEST (basic) fail_unless (out_cc_meta->size == 6); for (i = 0; i < out_cc_meta->size; i++) - fail_unless (out_cc_meta->data[i] == empty_data[i]); + fail_unless_equals_int (out_cc_meta->data[i], empty_data[i]); gst_buffer_unref (outbuf); |