mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine comments of aac publish for #212
This commit is contained in:
parent
c0a7752718
commit
77e43d1813
1 changed files with 1 additions and 6 deletions
|
@ -35,12 +35,7 @@ gcc srs_aac_raw_publish.c ../../objs/lib/srs_librtmp.a -g -O0 -lstdc++ -o srs_aa
|
||||||
|
|
||||||
#include "../../objs/include/srs_librtmp.h"
|
#include "../../objs/include/srs_librtmp.h"
|
||||||
|
|
||||||
// https://github.com/winlinvip/simple-rtmp-server/issues/212#issuecomment-63648892
|
// https://github.com/winlinvip/simple-rtmp-server/issues/212#issuecomment-64145910
|
||||||
// allspace:
|
|
||||||
// Take this file as an example: https://github.com/allspace/files/blob/master/srs.pcm
|
|
||||||
// It's captured using SDK callback method. I have filtered out h264 video, so it's audio only now.
|
|
||||||
// For every frame, it's a 8 bytes vendor specific header, following 160 bytes audio frame.
|
|
||||||
// The header part can be ignored.
|
|
||||||
int read_audio_frame(char* data, int size, char** pp, char** frame, int* frame_size)
|
int read_audio_frame(char* data, int size, char** pp, char** frame, int* frame_size)
|
||||||
{
|
{
|
||||||
char* p = *pp;
|
char* p = *pp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue