From 879008d3648dc7697cd96f846c9a70c7d43e7ecf Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Tue, 19 Nov 2024 17:21:16 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/ext/closedcaption/ccutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/closedcaption/ccutils.c b/subprojects/gst-plugins-bad/ext/closedcaption/ccutils.c index b5915cd3a6..ebe114f5f3 100644 --- a/subprojects/gst-plugins-bad/ext/closedcaption/ccutils.c +++ b/subprojects/gst-plugins-bad/ext/closedcaption/ccutils.c @@ -1022,7 +1022,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; } -- 2.34.1