Skip to content

Commit 4fc8e96

Browse files
authored
Removes lost_start_of_gop (#472)
It is not needed since there is a separate mechanism to synchronize the first SEI.
1 parent 6cb2697 commit 4fc8e96

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

lib/src/sv_auth.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,6 @@ compute_gop_hash(signed_video_t *self, bu_list_item_t *sei)
320320
item = item->next;
321321
}
322322
assert(item); // Should have stopped latest at |sei|.
323-
if (!gop_info->triggered_partial_gop && !item->bu->is_first_bu_in_gop) {
324-
DEBUG_LOG("Lost an I-frame");
325-
self->validation_flags.lost_start_of_gop = true;
326-
}
327323
SV_THROW(sv_openssl_finalize_hash(self->crypto_handle, gop_info->computed_gop_hash, true));
328324
// Store number of BUs used in |computed_gop_hash|.
329325
self->tmp_num_in_partial_gop = num_in_partial_gop;
@@ -1211,7 +1207,6 @@ maybe_validate_gop(signed_video_t *self, bu_info_t *bu)
12111207
latest->number_of_pending_picture_nalus = -1;
12121208
latest->public_key_has_changed = public_key_has_changed;
12131209
validation_flags->num_invalid = 0;
1214-
validation_flags->lost_start_of_gop = false;
12151210
// Reset |in_validation|.
12161211
update_sei_in_validation(self, true, NULL, NULL);
12171212
}

lib/src/sv_internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ typedef struct {
213213
int num_lost_seis; // Indicates how many SEIs has been lost since last the session got
214214
// the latest SEI. Note that this value can become negative if SEIs have changed order.
215215
int num_invalid; // Tracks invalid GOPs across multiple GOP validation.
216-
bool lost_start_of_gop; // Tracks if an I-frame has been lost, which needs to be
217-
// handled as a special case if it happens for the first validation.
218216
} validation_flags_t;
219217

220218
// Buffer of |last_two_bytes| and pointers to |sei| memory and current |write_position|.

0 commit comments

Comments
 (0)