ccutils: Fix a typo in cc_buffer_take_cea608_field2

There are no users of cc_buffer_take_cea608_field2, so this never was a
problem.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7967>
This commit is contained in:
Jan Alexander Steffens (heftig) 2024-11-19 17:21:16 +01:00 committed by GStreamer Marge Bot
parent a6a5401891
commit 9a3b4dff24

View file

@ -1104,7 +1104,7 @@ cc_buffer_take_cea608_field2 (CCBuffer * buf,
g_array_remove_range (buf->cea608_2, 0, write_cea608_2_size);
}
*cea608_2_len = write_cea608_2_size;
if (buf->output_padding && field1_padding > 0) {
if (buf->output_padding && field2_padding > 0) {
memset (&cea608_2[write_cea608_2_size], 0x80, field2_padding);
*cea608_2_len += field2_padding;
}