mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #293, add mp3 id3 spec
This commit is contained in:
parent
b04888a35d
commit
99bf397487
9 changed files with 78 additions and 10 deletions
|
@ -38,9 +38,6 @@ using namespace std;
|
|||
#include <srs_kernel_file.hpp>
|
||||
#include <srs_kernel_codec.hpp>
|
||||
|
||||
#define SRS_FLV_TAG_HEADER_SIZE 11
|
||||
#define SRS_FLV_PREVIOUS_TAG_SIZE 4
|
||||
|
||||
SrsAacEncoder::SrsAacEncoder()
|
||||
{
|
||||
_fs = NULL;
|
||||
|
|
|
@ -36,7 +36,7 @@ class SrsFileWriter;
|
|||
class SrsFileReader;
|
||||
|
||||
/**
|
||||
* encode data to flv file.
|
||||
* encode data to aac file.
|
||||
*/
|
||||
class SrsAacEncoder
|
||||
{
|
||||
|
@ -55,8 +55,8 @@ public:
|
|||
public:
|
||||
/**
|
||||
* initialize the underlayer file stream.
|
||||
* @remark user can initialize multiple times to encode multiple flv files.
|
||||
* @remark, user must free the fs, flv encoder never close/free it.
|
||||
* @remark user can initialize multiple times to encode multiple aac files.
|
||||
* @remark, user must free the fs, aac encoder never close/free it.
|
||||
*/
|
||||
virtual int initialize(SrsFileWriter* fs);
|
||||
public:
|
||||
|
|
|
@ -202,9 +202,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#define ERROR_AAC_REQUIRED_ADTS 3046
|
||||
#define ERROR_AAC_ADTS_HEADER 3047
|
||||
#define ERROR_AAC_DATA_INVALID 3048
|
||||
#define ERROR_HTTP_STATUS_INVLIAD 3049
|
||||
#define ERROR_KERNEL_AAC_STREAM_CLOSED 3050
|
||||
#define ERROR_AAC_DECODE_ERROR 3051
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
// HTTP protocol error.
|
||||
|
@ -214,6 +211,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#define ERROR_HTTP_URL_NOT_CLEAN 4002
|
||||
#define ERROR_HTTP_CONTENT_LENGTH 4003
|
||||
#define ERROR_HTTP_LIVE_STREAM_EXT 4004
|
||||
#define ERROR_HTTP_STATUS_INVLIAD 4005
|
||||
#define ERROR_KERNEL_AAC_STREAM_CLOSED 4006
|
||||
#define ERROR_AAC_DECODE_ERROR 4007
|
||||
#define ERROR_KERNEL_MP3_STREAM_CLOSED 4008
|
||||
#define ERROR_MP3_DECODE_ERROR 4009
|
||||
|
||||
/**
|
||||
* whether the error code is an system control error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue