Skip to content

Commit

Permalink
fix: fixed the issue where reconstruction started on non-continuous f…
Browse files Browse the repository at this point in the history
…ragments
  • Loading branch information
Banner2404 committed Jun 3, 2024
1 parent 3efaeda commit 966dc9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/formats/h26x.cc
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,11 @@ rtp_error_t uvgrtp::formats::h26x::packet_handler(void* args, int rce_flags, uin

if (s) {
start = c;
continuous = true;
reconstructed_fragments[c] = {}; // If this is start FU, initialize a new map for it
}

if (next == c || s) {
if (continuous && (next == c || s)) {
if (reconstructed_fragments.find(start) != reconstructed_fragments.end() ) {
continuous = true;
reconstructed_fragments.at(start).seqs.insert(c);
Expand Down

0 comments on commit 966dc9d

Please sign in to comment.