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

increase the nb_samples because some large video may overflow.

This commit is contained in:
winlin 2017-01-18 11:11:36 +08:00
parent 3fe338d1c5
commit 2ef1ef06e9
2 changed files with 7 additions and 5 deletions

View file

@ -243,9 +243,12 @@ extern int flv_sample_rates[];
*/
extern int aac_sample_rates[];
#define SRS_SRS_MAX_CODEC_SAMPLE 128
// The impossible aac sample rate index.
#define SRS_AAC_SAMPLE_RATE_UNSET 15
// The max number of NALUs in a video, or aac frame in audio packet.
#define SRS_MAX_CODEC_SAMPLE 256
/**
* the FLV/RTMP supported audio sample size.
* Size of each audio sample. This parameter only pertains to
@ -368,7 +371,7 @@ public:
* where avc/h264 video packet may contains multiple buffer.
*/
int nb_sample_units;
SrsCodecSampleUnit sample_units[SRS_SRS_MAX_CODEC_SAMPLE];
SrsCodecSampleUnit sample_units[SRS_MAX_CODEC_SAMPLE];
public:
/**
* whether the sample is video sample which demux from video packet.