-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix all warnings #81
Fix all warnings #81
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
#include "../graphics/matrix3.h" | ||
#endif | ||
|
||
struct { | ||
static struct { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please make this a separate commit (and include a reference to the C99 standard 6.11.5 Storage-class specifiers in the commit message) |
||
enum video_colorspace const color_space; | ||
float const Kb, Kr; | ||
int const range_min[3]; | ||
|
@@ -35,7 +35,7 @@ struct { | |
float float_range_max[3]; | ||
float matrix[2][16]; | ||
|
||
} static format_info[] = { | ||
} format_info[] = { | ||
{VIDEO_CS_601, | ||
0.114f, 0.299f, {16, 16, 16}, {235, 240, 240}, | ||
{{16, 128, 128}, {0, 128, 128}}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3923,7 +3923,7 @@ RTMP_ReadPacket(RTMP *r, RTMPPacket *packet) | |
uint8_t hbuf[RTMP_MAX_HEADER_SIZE] = { 0 }; | ||
char *header = (char *)hbuf; | ||
int nSize, hSize, nToRead, nChunk; | ||
int didAlloc = FALSE; | ||
// int didAlloc = FALSE; | ||
|
||
RTMP_Log(RTMP_LOGDEBUG2, "%s: fd=%d", __FUNCTION__, r->m_sb.sb_socket); | ||
|
||
|
@@ -4050,7 +4050,7 @@ RTMP_ReadPacket(RTMP *r, RTMPPacket *packet) | |
RTMP_Log(RTMP_LOGDEBUG, "%s, failed to allocate packet", __FUNCTION__); | ||
return FALSE; | ||
} | ||
didAlloc = TRUE; | ||
// didAlloc = TRUE; | ||
packet->m_headerType = (hbuf[0] & 0xc0) >> 6; | ||
} | ||
|
||
|
@@ -5339,8 +5339,8 @@ Read_1_Packet(RTMP *r, char *buf, unsigned int buflen) | |
|
||
if (recopy) | ||
{ | ||
len = (unsigned int)(ret) > buflen ? buflen : ret; | ||
memcpy(buf, r->m_read.buf, len); | ||
len = (unsigned int)(ret) > buflen ? buflen : (unsigned int)ret; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about len = (unsigned int)(ret) > buflen ? buflen : (unsigned int)ret; to keep differences minimal? |
||
memcpy(buf, r->m_read.buf, len); | ||
r->m_read.bufpos = r->m_read.buf + len; | ||
r->m_read.buflen = ret - len; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e. space after ,