提交 6c61fd19 authored 作者: Seven Du's avatar Seven Du

CID:1301110 CID:1301110 logically dead code

上级 8e37e9b4
...@@ -101,9 +101,11 @@ static unsigned int GetDigestOffset2(uint8_t *handshake, unsigned int len) ...@@ -101,9 +101,11 @@ static unsigned int GetDigestOffset2(uint8_t *handshake, unsigned int len)
res = (offset % 728) + 776; res = (offset % 728) + 776;
#if 0 //CID 1301111 logically dead code
if (res + 32 > 1535) { if (res + 32 > 1535) {
RTMP_Log(RTMP_LOGERROR, "%s: Couldn't calculate correct digest offset (got %d), exiting", __FUNCTION__, res); RTMP_Log(RTMP_LOGERROR, "%s: Couldn't calculate correct digest offset (got %d), exiting", __FUNCTION__, res);
} }
#endif
return res; return res;
} }
...@@ -125,12 +127,13 @@ static unsigned int GetDigestOffset1(uint8_t *handshake, unsigned int len) ...@@ -125,12 +127,13 @@ static unsigned int GetDigestOffset1(uint8_t *handshake, unsigned int len)
res = (offset % 728) + 12; res = (offset % 728) + 12;
#if 0 //CID 1301110 logicall dead code
if (res + 32 > 771) { if (res + 32 > 771) {
RTMP_Log(RTMP_LOGERROR, RTMP_Log(RTMP_LOGERROR,
"%s: Couldn't calculate digest offset (got %d), exiting!", "%s: Couldn't calculate digest offset (got %d), exiting!",
__FUNCTION__, res); __FUNCTION__, res);
} }
#endif
return res; return res;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论