From 96cfc84dd84a69edc6702f73d7c3f047ce53abb7 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Mon, 9 Sep 2013 14:09:08 +0300 Subject: [PATCH] Fix compiler warnings. --- src/nal.c | 2 +- src/nal.h | 2 +- src/transform.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nal.c b/src/nal.c index 520da691..8e884f16 100644 --- a/src/nal.c +++ b/src/nal.c @@ -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; diff --git a/src/nal.h b/src/nal.h index df4672c0..4b7ea9cf 100644 --- a/src/nal.h +++ b/src/nal.h @@ -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 diff --git a/src/transform.c b/src/transform.c index 00eb2056..18b631cd 100644 --- a/src/transform.c +++ b/src/transform.c @@ -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;