Skip to content

Commit a3d57c6

Browse files
authored
Adds bu_list_t members for unsigned SEIs (#432)
1 parent 21717fc commit a3d57c6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/src/sv_bu_list.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ bu_list_item_create(const bu_info_t *bu)
9696
item->bu = (bu_info_t *)bu;
9797
item->validation_status = get_validation_status_from_bu(bu);
9898
item->tmp_validation_status = item->validation_status;
99+
item->validation_status_if_sei_ok = ' ';
100+
item->verified_signature = -1;
99101

100102
return item;
101103
}

lib/src/sv_internal.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,14 @@ struct _bu_list_item_t {
179179
bool has_been_decoded; // Marks a SEI as decoded. Decoding it twice might overwrite
180180
// vital information.
181181
bool used_in_gop_hash; // Marks the BU as being part of a computed |gop_hash|.
182-
183182
bool used_for_linked_hash;
184183

184+
// Members used when there are unsigned SEIs involved. The content of a SEI can only be
185+
// trusted once the signed SEI has been verified.
186+
char validation_status_if_sei_ok;
187+
const bu_list_item_t *associated_sei; // Which SEI this item is associated with.
188+
int verified_signature;
189+
185190
// Members used when synchronizing the first usable SEI with the I-frame(s).
186191
bool in_validation; // Marks the SEI that is currently up for use.
187192
char tmp_validation_status; // Temporary status used before updating the final one.

0 commit comments

Comments
 (0)