mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix gop cache, drop video only when video and not h.264
This commit is contained in:
parent
2a1db36750
commit
0fbfad4172
5 changed files with 42 additions and 38 deletions
|
@ -97,8 +97,8 @@ void SrsFastBuffer::set_buffer(int buffer_size)
|
|||
}
|
||||
|
||||
// realloc for buffer change bigger.
|
||||
int start = p - buffer;
|
||||
int nb_bytes = end - p;
|
||||
int start = (int)(p - buffer);
|
||||
int nb_bytes = (int)(end - p);
|
||||
|
||||
buffer = (char*)realloc(buffer, nb_resize_buf);
|
||||
nb_buffer = nb_resize_buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue