On Thu, Jul 28, 2016 at 7:12 PM, Umair Khan <omerj...@gmail.com> wrote: > On Thu, Jul 28, 2016 at 2:25 PM, Thilo Borgmann <thilo.borgm...@mail.de> > wrote: >> Am 28.07.16 um 08:28 schrieb Umair Khan: >>> On Thu, Jul 28, 2016 at 12:22 AM, Clément Bœsch <u...@pkh.me> wrote: >>>> On Wed, Jul 27, 2016 at 07:48:56PM +0200, Thilo Borgmann wrote: >>>>>> @@ -1803,6 +2057,34 @@ static av_cold int decode_init(AVCodecContext >>>>>> *avctx) >>>>>> ctx->raw_buffer = av_mallocz_array(avctx->channels * >>>>>> channel_size, sizeof(*ctx->raw_buffer)); >>>>>> ctx->raw_samples = av_malloc_array(avctx->channels, >>>>>> sizeof(*ctx->raw_samples)); >>>>>> >>>>>> + if (sconf->floating) { >>>>>> + ctx->acf = av_malloc_array(avctx->channels, >>>>>> sizeof(*ctx->acf)); >>>>>> + ctx->shift_value = av_malloc_array(avctx->channels, >>>>>> sizeof(*ctx->shift_value)); >>>>>> + ctx->last_shift_value = av_malloc_array(avctx->channels, >>>>>> sizeof(*ctx->last_shift_value)); >>>>>> + ctx->last_acf_mantissa = av_malloc_array(avctx->channels, >>>>>> sizeof(*ctx->last_acf_mantissa)); >>>>>> + ctx->raw_mantissa = av_malloc_array(avctx->channels, >>>>>> sizeof(*ctx->raw_mantissa)); >>>>>> + >>>>>> + ctx->larray = av_malloc_array(ctx->cur_frame_length * 4, >>>>>> sizeof(*ctx->larray)); >>>>>> + ctx->nbits = av_malloc_array(ctx->cur_frame_length, >>>>>> sizeof(*ctx->nbits)); >> >>>>>> + ctx->mlz = av_malloc(sizeof(*ctx->mlz)); >>>>>> + ff_mlz_init_dict(avctx, ctx->mlz); >>>>>> + ff_mlz_flush_dict(ctx->mlz); >> >> ctx->mlz is also used without allocation check. Are the _dict functions safe >> for >> ctx->mlz == NULL?
I had sent the old patch file by mistake. This is the correct one. - Umair
0001-avcodec-alsdec-implement-floating-point-decoding.patch
Description: Binary data
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel