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

Bridger: Refine transcoder to support aac2opus and opus2aac. 4.0.94

This commit is contained in:
winlin 2021-04-20 19:57:21 +08:00 committed by Winlin
parent 00c192ede1
commit c10232b4e2
7 changed files with 390 additions and 580 deletions

View file

@ -650,9 +650,8 @@ public:
virtual bool is_avc_codec_ok();
};
/**
* A frame, consists of a codec and a group of samples.
*/
// A frame, consists of a codec and a group of samples.
// TODO: FIXME: Rename to packet to follow names of FFmpeg, which means before decoding or after decoding.
class SrsFrame
{
public:
@ -677,9 +676,8 @@ public:
virtual srs_error_t add_sample(char* bytes, int size);
};
/**
* A audio frame, besides a frame, contains the audio frame info, such as frame type.
*/
// A audio frame, besides a frame, contains the audio frame info, such as frame type.
// TODO: FIXME: Rename to packet to follow names of FFmpeg, which means before decoding or after decoding.
class SrsAudioFrame : public SrsFrame
{
public:
@ -691,9 +689,8 @@ public:
virtual SrsAudioCodecConfig* acodec();
};
/**
* A video frame, besides a frame, contains the video frame info, such as frame type.
*/
// A video frame, besides a frame, contains the video frame info, such as frame type.
// TODO: FIXME: Rename to packet to follow names of FFmpeg, which means before decoding or after decoding.
class SrsVideoFrame : public SrsFrame
{
public: