mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support build srs-librtmp by VS2015. 2.0.267
This commit is contained in:
parent
08bbbc5414
commit
01a4503ceb
7 changed files with 39 additions and 21 deletions
|
@ -430,7 +430,7 @@ bool srs_avc_startswith_annexb(SrsStream* stream, int* pnb_start_code)
|
|||
char* p = bytes;
|
||||
|
||||
for (;;) {
|
||||
if (!stream->require(p - bytes + 3)) {
|
||||
if (!stream->require((int)(p - bytes + 3))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -721,7 +721,7 @@ out2:
|
|||
*dst++ = v >> 4;
|
||||
out1:
|
||||
out0:
|
||||
return bits & 1 ? -1 : dst - out;
|
||||
return (int)(bits & 1 ? -1 : dst - out);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
@ -881,7 +881,7 @@ int srs_chunk_header_c0(
|
|||
}
|
||||
|
||||
// always has header
|
||||
return p - cache;
|
||||
return (int)(p - cache);
|
||||
}
|
||||
|
||||
int srs_chunk_header_c3(
|
||||
|
@ -931,6 +931,6 @@ int srs_chunk_header_c3(
|
|||
}
|
||||
|
||||
// always has header
|
||||
return p - cache;
|
||||
return (int)(p - cache);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue