[Live-devel] Mask value in MPEG2TransportStreamMultiplexor ?

Jeremy jeremy at electrosilk.net
Sun Oct 29 22:43:02 PST 2006


In MPEG2TransportStreamMultiplexor.cpp is the value 0xE0 in line 113
correct or should it be 0xF0?


00107     if (streamType == 0) {
00108       // Instead, set the stream's type to default values, based on
whether
00109       // the stream is audio or video, and whether it's MPEG-1 or
MPEG-2:
00110       if ((stream_id&0xF0) == 0xE0) { // video
00111         streamType = mpegVersion == 1 ? 1 : 2;00112         if
(fPCR_PID == 0) fPCR_PID = fCurrentPID; // use this stream's SCR for PCR
00113       } else if ((stream_id&0xE0) == 0xC0) { // audio




More information about the live-devel mailing list