Fix compiler warnings.

This commit is contained in:
Ari Koivula 2013-09-09 14:09:08 +03:00
parent fede3d95b7
commit 96cfc84dd8
3 changed files with 4 additions and 2 deletions

View file

@ -96,7 +96,7 @@ void nal_write(FILE* output, uint8_t* buffer, uint32_t buffer_len, uint8_t nal_r
\param stride Width of one row in the pixel array.
\returns Void
*/
static void array_checksum(uint8_t* data, const int height, const int width, const int stride, unsigned char checksum_out[])
static void array_checksum(const uint8_t* data, const int height, const int width, const int stride, unsigned char checksum_out[])
{
unsigned char mask;
unsigned int checksum = 0;

View file

@ -68,6 +68,6 @@ enum {
};
void nal_write(FILE* output, uint8_t* buffer, uint32_t buffer_len, uint8_t nal_ref, uint8_t nal_type, uint8_t temporal_id);
void picture_checksum(const picture* pic, unsigned char* checksum_out);
void picture_checksum(const picture* pic, unsigned char checksum_out[][16]);
#endif

View file

@ -797,7 +797,9 @@ void quant(encoder_control* encoder, int16_t* pSrc, int16_t* pDes, int32_t iWidt
uint32_t* scan = g_auiSigLastScan[ scanIdx ][ log2BlockSize - 1 ];
//uint32_t scanIdx = SCAN_DIAG;
#if ENABLE_SIGN_HIDING == 1
int32_t deltaU[LCU_WIDTH*LCU_WIDTH>>2];
#endif
int32_t iQpBase = encoder->QP;
int32_t qpScaled;