From 9a3b4dff24a5ed64f88becedfe9b8e5c9a27dce5 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 1dca36fd90..5ea5a5cbd3 100644 --- a/subprojects/gst-plugins-bad/ext/closedcaption/ccutils.c +++ b/subprojects/gst-plugins-bad/ext/closedcaption/ccutils.c @@ -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; }