# HG changeset patch # User thilo.borgmann # Date 1266449208 0 # Node ID f1b38a8588b2d843f2d741e8113e08a8abd6db12 # Parent 00854e4457f2ad54baabf61236d763364b039ec6 Fix sizeof()-statement to use the actual pointer type. diff -r 00854e4457f2 -r f1b38a8588b2 alsdec.c --- a/alsdec.c Wed Feb 17 22:53:25 2010 +0000 +++ b/alsdec.c Wed Feb 17 23:26:48 2010 +0000 @@ -1564,7 +1564,7 @@ if (sconf->mc_coding) { ctx->chan_data_buffer = av_malloc(sizeof(*ctx->chan_data_buffer) * num_buffers * num_buffers); - ctx->chan_data = av_malloc(sizeof(ALSChannelData) * + ctx->chan_data = av_malloc(sizeof(*ctx->chan_data) * num_buffers); ctx->reverted_channels = av_malloc(sizeof(*ctx->reverted_channels) * num_buffers);