changeset 31:2326a45dc9f6

Fix / silence some warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 15 May 2017 15:59:16 +0300
parents 6fec76de9a8d
children 38ae4a231581
files libbpg.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libbpg.c	Thu May 11 18:14:31 2017 +0300
+++ b/libbpg.c	Mon May 15 15:59:16 2017 +0300
@@ -192,13 +192,12 @@
 }
 
 static int build_msps(uint8_t **pbuf, int *pbuf_len,
-                      const uint8_t *input_data, int input_data_len1,
+                      const uint8_t *input_data, uint32_t input_data_len1,
                       int width, int height, int chroma_format_idc,
                       int bit_depth)
 {
-    int input_data_len = input_data_len1;
     int idx, msps_len, ret, buf_len, i;
-    uint32_t len;
+    uint32_t len, input_data_len = input_data_len1;
     uint8_t *buf, *msps_buf;
 
     *pbuf = NULL;
@@ -987,6 +986,8 @@
 {
     uint8_t *q = dst;
     int x, y_val, c, rnd, shift;
+    (void) cb_ptr;
+    (void) cr_ptr;
 
     if (s->bit_depth == 8 && !s->limited_range) {
         for(x = 0; x < n; x++) {
@@ -1151,6 +1152,8 @@
 {
     uint16_t *q = (uint16_t *)dst;
     int x, y_val, c, rnd, shift;
+    (void) cb_ptr;
+    (void) cr_ptr;
 
     c = s->y_one;
     rnd = s->y_offset;