comparison alsdec.c @ 11199:f1b38a8588b2 libavcodec

Fix sizeof()-statement to use the actual pointer type.
author thilo.borgmann
date Wed, 17 Feb 2010 23:26:48 +0000
parents 00854e4457f2
children 8173c059f769
comparison
equal deleted inserted replaced
11198:00854e4457f2 11199:f1b38a8588b2
1562 1562
1563 // allocate and assign channel data buffer for mcc mode 1563 // allocate and assign channel data buffer for mcc mode
1564 if (sconf->mc_coding) { 1564 if (sconf->mc_coding) {
1565 ctx->chan_data_buffer = av_malloc(sizeof(*ctx->chan_data_buffer) * 1565 ctx->chan_data_buffer = av_malloc(sizeof(*ctx->chan_data_buffer) *
1566 num_buffers * num_buffers); 1566 num_buffers * num_buffers);
1567 ctx->chan_data = av_malloc(sizeof(ALSChannelData) * 1567 ctx->chan_data = av_malloc(sizeof(*ctx->chan_data) *
1568 num_buffers); 1568 num_buffers);
1569 ctx->reverted_channels = av_malloc(sizeof(*ctx->reverted_channels) * 1569 ctx->reverted_channels = av_malloc(sizeof(*ctx->reverted_channels) *
1570 num_buffers); 1570 num_buffers);
1571 1571
1572 if (!ctx->chan_data_buffer || !ctx->chan_data || !ctx->reverted_channels) { 1572 if (!ctx->chan_data_buffer || !ctx->chan_data || !ctx->reverted_channels) {