Update demuxer comment
The comment was outdated: - the "meta" header is now always present (not only when recording is enabled); - it is not only used for the video stream, but also for the audio stream.
This commit is contained in:
parent
b2d860382f
commit
9a2abba098
1 changed files with 2 additions and 3 deletions
|
@ -79,9 +79,8 @@ sc_demuxer_recv_video_size(struct sc_demuxer *demuxer, uint32_t *width,
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
sc_demuxer_recv_packet(struct sc_demuxer *demuxer, AVPacket *packet) {
|
sc_demuxer_recv_packet(struct sc_demuxer *demuxer, AVPacket *packet) {
|
||||||
// The video stream contains raw packets, without time information. When we
|
// The video and audio streams contain a sequence of raw packets (as
|
||||||
// record, we retrieve the timestamps separately, from a "meta" header
|
// provided by MediaCodec), each prefixed with a "meta" header.
|
||||||
// added by the server before each raw packet.
|
|
||||||
//
|
//
|
||||||
// The "meta" header length is 12 bytes:
|
// The "meta" header length is 12 bytes:
|
||||||
// [. . . . . . . .|. . . .]. . . . . . . . . . . . . . . ...
|
// [. . . . . . . .|. . . .]. . . . . . . . . . . . . . . ...
|
||||||
|
|
Loading…
Reference in a new issue