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:
parent
3fe338d1c5
commit
2ef1ef06e9
2 changed files with 7 additions and 5 deletions
|
@ -353,10 +353,9 @@ int SrsCodecSample::add_sample_unit(char* bytes, int size)
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
if (nb_sample_units >= SRS_SRS_MAX_CODEC_SAMPLE) {
|
||||
if (nb_sample_units >= SRS_MAX_CODEC_SAMPLE) {
|
||||
ret = ERROR_HLS_DECODE_ERROR;
|
||||
srs_error("hls decode samples error, "
|
||||
"exceed the max count: %d, ret=%d", SRS_SRS_MAX_CODEC_SAMPLE, ret);
|
||||
srs_error("avc exceed samples count, max=%d, video=%d. ret=%d", SRS_MAX_CODEC_SAMPLE, is_video, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue