1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #133, rtsp parse aac from rtp packet.

This commit is contained in:
winlin 2015-02-18 13:37:08 +08:00
parent 0cc693a3b8
commit a954040d29
3 changed files with 108 additions and 2 deletions

View file

@ -39,6 +39,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class SrsStream;
class SrsSimpleBuffer;
class SrsCodecSample;
class ISrsProtocolReaderWriter;
// rtsp specification
@ -292,6 +293,11 @@ public:
// normal message always completed.
// while chunked completed when the last chunk arriaved.
bool completed;
/**
* the audio samples, one rtp packets may contains multiple audio samples.
*/
SrsCodecSample* audio_samples;
public:
SrsRtpPacket();
virtual ~SrsRtpPacket();
@ -308,6 +314,9 @@ public:
* decode rtp packet from stream.
*/
virtual int decode(SrsStream* stream);
private:
virtual int decode_97(SrsStream* stream);
virtual int decode_96(SrsStream* stream);
};
/**