Removed ALL the compile warnings!

This commit is contained in:
Thulinma 2014-01-05 15:26:41 +01:00
parent b5a4ea1b93
commit 12a0c1942c
18 changed files with 218 additions and 211 deletions

View file

@ -66,7 +66,7 @@ namespace OGG{
}
memcpy(data, newData.c_str(), 27);//copying the header, always 27 bytes
if (newData.size() < 27 + getPageSegments()){//check input size
if (newData.size() < 27u + getPageSegments()){//check input size
return false;
}
if(!checkDataSize(27 + getPageSegments())){//check if size available in memory
@ -279,7 +279,7 @@ namespace OGG{
}
bool Page::typeNone(){
if (getHeaderType() & 0x07 == 0x00){
if ((getHeaderType() & 0x07) == 0x00){
return true;
}
return false;
@ -319,7 +319,7 @@ namespace OGG{
r << std::string(indent + 2,' ') << "Payloadsize: " << dataSum << std::endl;
if (codec == "theora"){
int offset = 0;
for (int i = 0; i < getSegmentTableDeque().size(); i++){
for (unsigned int i = 0; i < getSegmentTableDeque().size(); i++){
theora::header tmpHeader;
int len = getSegmentTableDeque()[i];
if (tmpHeader.read(getFullPayload()+offset,len)){
@ -334,7 +334,7 @@ namespace OGG{
}else if(codec == "vorbis"){
r << "Vorbis Data" << std::endl;
int offset = 0;
for (int i = 0; i < getSegmentTableDeque().size(); i++){
for (unsigned int i = 0; i < getSegmentTableDeque().size(); i++){
vorbis::header tmpHeader;
int len = getSegmentTableDeque()[i];
if (tmpHeader.read(getFullPayload()+offset,len)){