muxer pass: correct PAT generation

This commit is contained in:
Adam Sutton 2013-12-02 13:53:38 +00:00
parent 36fc669182
commit bfa033de6a

View file

@ -253,7 +253,7 @@ pass_muxer_rewrite_pat(pass_muxer_t* pm, unsigned char* tsb)
tsb[3] = (tsb[3] & 0xf0) | pm->pm_pat_cc;
pm->pm_pat_cc = (pm->pm_pat_cc + 1) & 0xf;
tsb[6] = 0;
tsb[6] = 0x80;
tsb[7] = 13; /* section_length (number of bytes after this field, including CRC) */
tsb[13] = (pm->pm_service_id & 0xff00) >> 8;