Make a void * pointer const.
This commit is contained in:
@@ -405,15 +405,15 @@ aiffReader::GetNextChunk(void *cookie,
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32
|
uint32
|
||||||
aiffReader::DecodeFrameRate(void *_80bit_float)
|
aiffReader::DecodeFrameRate(const void *_80bit_float)
|
||||||
{
|
{
|
||||||
// algorithm from http://www.borg.com/~jglatt/tech/aiff.htm
|
// algorithm from http://www.borg.com/~jglatt/tech/aiff.htm
|
||||||
uint32 mantissa;
|
uint32 mantissa;
|
||||||
uint32 last;
|
uint32 last;
|
||||||
uint32 exp;
|
uint32 exp;
|
||||||
|
|
||||||
mantissa = (uint32)B_BENDIAN_TO_HOST_INT32(*(uint32 *)((char *)_80bit_float + 2));
|
mantissa = (uint32)B_BENDIAN_TO_HOST_INT32(*(const uint32 *)((const char *)_80bit_float + 2));
|
||||||
exp = 30 - *(uint8 *)((char *)_80bit_float + 1);
|
exp = 30 - *(const uint8 *)((const char *)_80bit_float + 1);
|
||||||
if (exp > 32)
|
if (exp > 32)
|
||||||
return 0;
|
return 0;
|
||||||
last = 0;
|
last = 0;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public:
|
|||||||
const void **chunkBuffer, size_t *chunkSize,
|
const void **chunkBuffer, size_t *chunkSize,
|
||||||
media_header *mediaHeader);
|
media_header *mediaHeader);
|
||||||
private:
|
private:
|
||||||
uint32 DecodeFrameRate(void *_80bit_float);
|
uint32 DecodeFrameRate(const void *_80bit_float);
|
||||||
|
|
||||||
BPositionIO *Source() { return fSource; }
|
BPositionIO *Source() { return fSource; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user