Real Checko's Blog
2.01.2010
pid and contunuity code in Transport Stream
雖然 Wiki 上寫的 pid 是在 high byte,continuity code 也是在 high byte。
但是實際上做起來:
byte 0 : sync 0x47
byte 1 : pid high and xxx bit
byte 2 : pid low and
byte 3 : continuity code and xxx
pid = ((byte1 << 8) | byte2) & 0x1FFF
cnt = byte3 % 0x0F
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言