[FFmpeg-cvslog] r21872 - trunk/libavcodec/alsdec.c

thilo.borgmann subversion
Thu Feb 18 00:26:48 CET 2010


Author: thilo.borgmann
Date: Thu Feb 18 00:26:48 2010
New Revision: 21872

Log:
Fix sizeof()-statement to use the actual pointer type.

Modified:
   trunk/libavcodec/alsdec.c

Modified: trunk/libavcodec/alsdec.c
==============================================================================
--- trunk/libavcodec/alsdec.c	Wed Feb 17 23:53:25 2010	(r21871)
+++ trunk/libavcodec/alsdec.c	Thu Feb 18 00:26:48 2010	(r21872)
@@ -1564,7 +1564,7 @@ static av_cold int decode_init(AVCodecCo
     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);



More information about the ffmpeg-cvslog mailing list