Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/muxer/muxer_pass.c b/src/muxer/muxer_pass.c
- index 906099a..a85056d 100644
- --- a/src/muxer/muxer_pass.c
- +++ b/src/muxer/muxer_pass.c
- @@ -43,6 +43,7 @@ typedef struct pass_muxer {
- /* TS muxing */
- uint8_t pm_pat_cc;
- + uint32_t pm_pat_sequence;
- uint16_t pm_pmt_pid;
- uint8_t pm_pmt_cc;
- uint8_t *pm_pmt;
- @@ -264,7 +265,13 @@ pass_muxer_rewrite_pat(pass_muxer_t* pm, unsigned char* tsb)
- pass_muxer_append_crc32(tsb+5, 12, 183);
- - memset(tsb + 21, 0xff, 167); /* Wipe rest of packet */
- + tsb[21] = (pm->pm_pat_sequence >> 24) & 0xff;
- + tsb[22] = (pm->pm_pat_sequence >> 16) & 0xff;
- + tsb[23] = (pm->pm_pat_sequence >> 8) & 0xff;
- + tsb[24] = pm->pm_pat_sequence & 0xff;
- + pm->pm_pat_sequence++;
- +
- + memset(tsb + 25, 0xff, 163); /* Wipe rest of packet */
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement