Message ID | 20200914052747.124118-3-andreas.rheinhardt@gmail.com |
---|---|
State | Accepted |
Commit | e75ccc81234a22eee90e2a31808639e754b97cd1 |
Headers | show
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 0D7BB4480DE for <patchwork@ffaux-bg.ffmpeg.org>; Mon, 14 Sep 2020 08:34:39 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E84A568BC35; Mon, 14 Sep 2020 08:34:38 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5913A68BBA9 for <ffmpeg-devel@ffmpeg.org>; Mon, 14 Sep 2020 08:34:32 +0300 (EEST) Received: by mail-ej1-f66.google.com with SMTP id i26so21333560ejb.12 for <ffmpeg-devel@ffmpeg.org>; Sun, 13 Sep 2020 22:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0RxT3lXPCmOj3ZPBLs3oE9Sd+hOidPoBLW80g/6/aO8=; b=RF3IyvjvxIbN1IJvgQeS5+ROAzcIna2+RerbtulqF3IiA8tMaMO0YW62bpNlllq/oQ qaTG3hGdTdTxsFjm7UKLCZJNPfSc5/5d4fBr9WBcXd/kqbR1Y550fAYGHHhxlId4SYy7 X6USy9NAnSZtjbjp8XBQjS5ZWJf9kALUIzIbRmpVNujll1js3x36bkmVrnywYTBtYn42 tj7w4pACati/8ZHfUWJwQYdnQdRCpWAdep5RgYdmQZ+823r8FjLSyuqrVYGMnx+THbF7 z7lvOtDqLa4YrU10Mk7lTTTVVM0TIajR3jqyTRJhjEG3FNIyC/eF0m/JzqQoIM1ItJ5g +KZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0RxT3lXPCmOj3ZPBLs3oE9Sd+hOidPoBLW80g/6/aO8=; b=odxb7kz0WqBlfUGJiKgzOMdEkqyvt+SUdGX0jBsEesTdjNPTlA9fZ9LzegZKttAAtm r5+P8w4aQw+V41M4Wb//iSU6mWOBwtnTxNYcsXt070PCxnHr+aj214pO3v2S7cp5ZvP0 enmnzSjXAH84C9iax7CZh026JYk95D0NpfGFbcJFCG0gEJZJGfT3QA946UDlpDaJnqve FeRdIk8kYEhziGjTaIeZ13Rdmfokqgd6yAbve2v74lc4KDAaU3cYIDfSokC7QZNsCmnj Rcgs2398xj4nM1PX9+I2Hmfk9D4On9KKe31hHEGdslqgwkN5SeiGYJYu7aZR3fRTJYZS CV5Q== X-Gm-Message-State: AOAM530Fa0woO6kB5ImT/jx1s584bPX2OkCk7IJ5atdRqVmO7T+CGvcz ldIUWm/jdK5WkQJ/IMvnJPotJ9N1qgc= X-Google-Smtp-Source: ABdhPJz3690ejy5im4i+Fl57S0G3jgY6g3PeCQVNEHT+vXK4EfqP6cFIJVCCr+TiqxfY0juUGiamaw== X-Received: by 2002:a50:f687:: with SMTP id d7mr16020445edn.353.1600061297757; Sun, 13 Sep 2020 22:28:17 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1fb0f.dynamic.kabel-deutschland.de. [188.193.251.15]) by smtp.gmail.com with ESMTPSA id f4sm8251421edm.76.2020.09.13.22.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2020 22:28:17 -0700 (PDT) From: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 14 Sep 2020 07:27:26 +0200 Message-Id: <20200914052747.124118-3-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200913025753.274772-1-andreas.rheinhardt@gmail.com> References: <20200913025753.274772-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 19/40] avcodec/atrac1: Check allocation of AVFloatDSPContext X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> |
Series |
[FFmpeg-devel,01/16] avcodec/snowdec: Use ff_snow_common_init() directly
|
expand
|
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
On Mon, Sep 14, 2020 at 07:27:26AM +0200, Andreas Rheinhardt wrote: > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> > --- > libavcodec/atrac1.c | 4 ++++ > 1 file changed, 4 insertions(+) > lgtm
diff --git a/libavcodec/atrac1.c b/libavcodec/atrac1.c index a8c8c91bcc..9ecd49273d 100644 --- a/libavcodec/atrac1.c +++ b/libavcodec/atrac1.c @@ -362,6 +362,10 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx) ff_atrac_generate_tables(); q->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT); + if (!q->fdsp) { + atrac1_decode_end(avctx); + return AVERROR(ENOMEM); + } q->bands[0] = q->low; q->bands[1] = q->mid;
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> --- libavcodec/atrac1.c | 4 ++++ 1 file changed, 4 insertions(+)