muxer pass: correct program number in PMT generation
This commit is contained in:
parent
1dcb0947b9
commit
5fce3a4941
1 changed files with 3 additions and 2 deletions
|
@ -91,8 +91,9 @@ pass_muxer_build_pmt(const streaming_start_t *ss, uint8_t *buf0, int maxlen,
|
|||
|
||||
buf[0] = 2; /* table id, always 2 */
|
||||
|
||||
buf[3] = 0x00; /* program id */
|
||||
buf[4] = 0x01;
|
||||
/* program id */
|
||||
buf[3] = ss->ss_service_id >> 8;
|
||||
buf[4] = ss->ss_service_id & 0xff;
|
||||
|
||||
buf[5] = 0xc1; /* current_next_indicator + version */
|
||||
buf[5] |= (version & 0x1F) << 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue