Skip to content

Commit 64297e7

Browse files
quariumcmassiot
authored andcommitted
upipe_mpgvf: prevent sequence header duplication
Prevent sequence header duplication when using complete_input flag.
1 parent 4beda2c commit 64297e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/upipe-framers/upipe_mpgv_framer.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,11 @@ static void upipe_mpgvf_work(struct upipe *upipe, struct upump **upump_p)
13121312
break;
13131313
}
13141314
continue;
1315+
} else if (upipe_mpgvf->complete_input) {
1316+
if (start == MP2VSEQ_START_CODE) {
1317+
upipe_mpgvf->next_frame_sequence = true;
1318+
upipe_mpgvf->seq_rap = upipe_mpgvf->dts_rap;
1319+
}
13151320
}
13161321

13171322
if (unlikely(upipe_mpgvf->next_frame_offset == -1)) {

0 commit comments

Comments
 (0)