summaryrefslogtreecommitdiff
path: root/libavcodec/wmalosslessdec.c
diff options
context:
space:
mode:
authorMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>2011-11-30 01:52:33 +0600
committerMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>2011-11-30 02:16:48 +0600
commit6dd19c97c4e24b0fb52e092702fb1192ea569525 (patch)
tree0036250ced619662fe79488ff41a3caa0554dd37 /libavcodec/wmalosslessdec.c
parent81a3c67169aee9efe50bb8d4bffe635e55481f3a (diff)
Add a size argument to dump_int_buffer()
Diffstat (limited to 'libavcodec/wmalosslessdec.c')
-rw-r--r--libavcodec/wmalosslessdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index ef663d3534..d4b245a4c4 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -310,14 +310,14 @@ static void av_cold dump_context(WmallDecodeCtx *s)
PRINT("num channels", s->num_channels);
}
-static int dump_int_buffer(int *buffer, int length, int delimiter)
+static void dump_int_buffer(uint8_t *buffer, int size, int length, int delimiter)
{
int i;
for (i=0 ; i<length ; i++) {
if (!(i%delimiter))
av_log(0, 0, "\n[%d] ", i);
- av_log(0, 0, "%d, ", buffer[i]);
+ av_log(0, 0, "%d, ", *(int16_t *)(buffer + i * size));
}
av_log(0, 0, "\n");
@@ -719,7 +719,7 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
residue = residue >> 1;
s->channel_residues[ch][i] = residue;
}
- dump_int_buffer(s->channel_residues[ch], tile_size, 16);
+ dump_int_buffer(s->channel_residues[ch], 4, tile_size, 16);
return 0;