[FFmpeg-devel] [PATCH] Multi-Channel Correlation in ALS
Thilo Borgmann
thilo.borgmann
Mon Jan 4 15:25:06 CET 2010
>Index: libavcodec/alsdec.c
>===================================================================
>--- libavcodec/alsdec.c (Revision 21012)
>+++ libavcodec/alsdec.c (Arbeitskopie)
>...
>+ num_buffers);
>+ ctx->chan_data = av_malloc(sizeof(ALSChannelData) *
>+ num_buffers);
>+ ctx->reverted_channels =
>av_malloc(sizeof(*ctx->reverted_channels) *
>+ num_buffers);
>+
>+ if (!ctx->chan_data_buffer || !ctx->chan_data) {
>+ av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory
>failed.\n");
>+ decode_end(avctx);
>+ return AVERROR(ENOMEM);
>+ }
Missed to include the check for the new reverted_channels field. Patch
updated to revision 4.
-Thilo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: als_mcc.rev4.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100104/8badd072/attachment.asc>
More information about the ffmpeg-devel
mailing list