[FFmpeg-devel] [PATCH] ALS decoder

Michael Niedermayer michaelni
Thu Sep 3 20:27:06 CEST 2009


On Thu, Sep 03, 2009 at 08:19:24PM +0200, Diego Biurrun wrote:
> On Thu, Sep 03, 2009 at 07:57:21PM +0200, Thilo Borgmann wrote:
[...]
> > +    ctx->prev_raw_samples = av_malloc (sizeof(*ctx->prev_raw_samples) * sconf->max_order);
> > +    ctx->raw_buffer       = av_mallocz(sizeof(*ctx->raw_buffer)  * avctx->channels * channel_size);
> > +    ctx->raw_samples      = av_malloc (sizeof(*ctx->raw_samples) * avctx->channels);
> 
>     ctx->prev_raw_samples =  av_malloc(sizeof(*ctx->prev_raw_samples) * sconf->max_order);
>     ctx->raw_buffer       = av_mallocz(sizeof(*ctx->raw_buffer)       * avctx->channels * channel_size);
>     ctx->raw_samples      =  av_malloc(sizeof(*ctx->raw_samples)      * avctx->channels);
> 
> :)

     ctx->prev_raw_samples =  av_malloc (sizeof(*ctx->prev_raw_samples) * sconf->max_order              );
     ctx->     raw_buffer  =  av_mallocz(sizeof(*ctx->     raw_buffer ) * avctx->channels * channel_size);
     ctx->     raw_samples =  av_malloc (sizeof(*ctx->     raw_samples) * avctx->channels               );

:]

(just a suggestion, that is pretty unimportant ...)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct awnser.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090903/c275aa9c/attachment.pgp>



More information about the ffmpeg-devel mailing list