ccutils: Remove broken branch
This branch was added in dd00dab5e9e8650f3f00660c2e611f81f1e8cd5b but is never actually taken, as it requires `cc_data` to be null but `cc_data_len` to be non-null. It would then dereference the null `cc_data`. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7967>
This commit is contained in:
parent
5a6594dea5
commit
3a119b20b3
@ -921,16 +921,6 @@ cc_buffer_take_separated (CCBuffer * buf,
|
||||
}
|
||||
}
|
||||
*cc_data_len = write_ccp_size + ccp_padding;
|
||||
} else if (buf->output_padding) {
|
||||
guint i;
|
||||
guint padding = 3 * fps_entry->max_ccp_count;
|
||||
for (i = 0; i < padding; i += 3) {
|
||||
cc_data[i + write_ccp_size] = 0xfa;
|
||||
cc_data[i + 1 + write_ccp_size] = 0x00;
|
||||
cc_data[i + 2 + write_ccp_size] = 0x00;
|
||||
}
|
||||
GST_TRACE_OBJECT (buf, "outputting only %u padding bytes", padding);
|
||||
*cc_data_len = padding;
|
||||
} else {
|
||||
*cc_data_len = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user