For writing my own ogg-container-class (not using libogg), I try to understand the needed header format. According to the spec, at byte 27 of the stream (starting to count at 0) starts the "segment_table (containing packet lacing values)". This is the red marked byte 13
. Concerning the Opus-data that I want to include, the Opus data must start with OpusHead (4F 70 75 73)
on its beginning. Why doesn't it start on position 27 where the red 13
is placed? A 13
is a "device control 3" symbol that neither occurs in the Ogg spec, nor in the Opus spec.
编辑:我发现这个链接描述了一些规范。很明显(不是来自第一个链接恕我直言)13
(字节27)是下一个段的大小。