提交 535638b5 编写于 作者: G Georgi Chorbadzhiyski 提交者: Mans Rullgard

mpegtsenc: set reserved bits to 1 in PCR field

The reserved bits between PCR base and extension fields must be
set to 1.
Signed-off-by: NMans Rullgard <mans@mansr.com>
上级 1a886748
......@@ -573,7 +573,7 @@ static uint8_t* write_pcr_bits(uint8_t *buf, int64_t pcr)
*buf++ = pcr_high >> 17;
*buf++ = pcr_high >> 9;
*buf++ = pcr_high >> 1;
*buf++ = ((pcr_high & 1) << 7) | (pcr_low >> 8);
*buf++ = pcr_high << 7 | pcr_low >> 8 | 0x7e;
*buf++ = pcr_low;
return buf;
......
e0c183639709d6e75bc553a3ed1333dd *./tests/data/lavf/lavf.ts
90e770ba5ec0506bd66cd44511e173a3 *./tests/data/lavf/lavf.ts
406644 ./tests/data/lavf/lavf.ts
./tests/data/lavf/lavf.ts CRC=0x133216c1
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册