From patchwork Mon Jul 24 12:24:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: foo86 X-Patchwork-Id: 4436 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp4203384vsb; Mon, 24 Jul 2017 05:34:49 -0700 (PDT) X-Received: by 10.28.133.149 with SMTP id h143mr4572108wmd.129.1500899689636; Mon, 24 Jul 2017 05:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500899689; cv=none; d=google.com; s=arc-20160816; b=M41zkLBQCN37U4vpE9rkAjsPuwJmoiO/SSXlvPFNga6wZcYE+NvcT37S8ywD4vuQqr jcAnlKD4tU857YyOqc0cM/kFozHcfSohGjmAzmHL1tbAvuKB2kUehI6jp1jGV5dNTS5b tP81vjnjas+LZqLC3KbjeJDtJbjhOd3GUm+9vFgdlWHwp54fY4tQCtn+TP+6tR9sQk2P ewkumeVYz1Wz+f3wVOqzhxIBkwqrTQKbDsck2p+VOn0ib+YjwMvb92Sv5nFUur8TSaWk 2YEGro6W2dwjkV0eIS9+3oYmtL3nCD6GPDbuWY9rYlGDjwjWPnu0EGySTt7lsaJ6gAc6 IYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=qYH3rXagA2sDAdvDw4dF/SBQvARAvUZRaALI/DQo5mU=; b=ZxOVPUndr4UptuBsc/ppFLJ3+SLgHftOh8L7joENMi/QM8blxWJUhk392Xdudf6kjx nXiXjS9ZYgy9YCGEUNeSycsRK4go3FJyMLbjV3lE2hJYyTDbH6Q2HOY3iup37R8+uSkw xnOMECNoqezsUrSGhMSTn/diNnDNQ93rMBJjIwj45mJb5WQd0iehRVifriGWUWgSEHMX BO0sIyTgR2V+H2uS8U/DyBj+zVMv93wRVh2iLTgGhvMviNbUcvOdYSvqgB+vYRw3d3hx Zrlb8TdF69LeWR+kJATz4HJ7xXAaRo/OxLGI+DgtArjSP67mdiAkVc/oAmRTQiw32DQx 1+qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=e0aL8C/E; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r125si5481818wma.29.2017.07.24.05.34.49; Mon, 24 Jul 2017 05:34:49 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=e0aL8C/E; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AB558689933; Mon, 24 Jul 2017 15:34:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 63D98688395 for ; Mon, 24 Jul 2017 15:34:31 +0300 (EEST) Received: by mail-lf0-f48.google.com with SMTP id y15so43648250lfd.5 for ; Mon, 24 Jul 2017 05:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=Y0MDphrk9DpCo3FCu4jbKqVH+ywmbo0PPuqQkiBwkAY=; b=e0aL8C/EjKf3VHDmXkH4b69pkODVM+5/W5D4FHNxLRFcUslPdx/tbKLzimLNO7IImU pQ3HNjcAu8AAMlmQBhtQ0SPhjGJMo0Z9liQGJpR7kVpR+mX9wBDMwMBFGoc9/dtlsoRV Epkoxp8XTikp87j5q/xV5YWwz3puLmTOqdqn8Csx07PAR693uHFTjVUXl/dtSx1fDAkE tStByck3DJlvjgcvCUNHSLIoPIRyTB3GdJJ4F6WGgcCOXDb2+4eD2wHnEBsphM+Bi+ax tDNXpcXwMxTZZA8g+J+ixie2HfM6SI9tYHEzHCh6BUYLn3n9Dsfq85HvTqFxFED+ZCem 4UCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=Y0MDphrk9DpCo3FCu4jbKqVH+ywmbo0PPuqQkiBwkAY=; b=IMOTO3j7J0f82sHUPPw9gwB3SkdNo5ZlOogV3U94ZCxrD0w5pzqAJ3IOfrWdRIIkSp zasoRF9nMFS1DF5rxtlOApRidAiVULjLPuwraAoib5T2JPPaJlJ/oPFTL6rahYaTQPjm /rPp+sKGLBg1lox5TlBbGdxJebLJjJyVFt0Ym4yqzHfy5mwcbqkzmyy/mH9wE2ASokvX UE7yhLdIZBc1ZC38qa7ij0hqp2XGy9J2BnOVok4doGNj7BvTB4ZjcF/26PE9N12CS0qR Uud5/SjFEhG0WAWnkMl6vnaL0t5E2RD9PBu4cjsAdI6w1zE3PdzeSOaofSk2dVO0hxUk 3J8Q== X-Gm-Message-State: AIVw1103UFS9Y0Y1MjCbCkrxKoOyriKDpjQv81H1zMd4wcq6crCCObHr EAlYnqV48biIG3Sy X-Received: by 10.25.229.87 with SMTP id c84mr6051843lfh.52.1500899183370; Mon, 24 Jul 2017 05:26:23 -0700 (PDT) Received: from foohost.foodomain ([2001:470:28:661::4]) by smtp.gmail.com with ESMTPSA id y1sm2323311lja.24.2017.07.24.05.26.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 05:26:22 -0700 (PDT) From: foo86 To: ffmpeg-devel@ffmpeg.org Date: Mon, 24 Jul 2017 15:24:46 +0300 Message-Id: <20170724122447.3307-1-foobaz86@gmail.com> X-Mailer: git-send-email 2.11.0 Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/dcaadpcm: remove unreachable code X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Arguments passed to these functions are never NULL. --- libavcodec/dcaadpcm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libavcodec/dcaadpcm.c b/libavcodec/dcaadpcm.c index 9f615e3793..d9f53441b0 100644 --- a/libavcodec/dcaadpcm.c +++ b/libavcodec/dcaadpcm.c @@ -211,9 +211,6 @@ int ff_dcaadpcm_do_real(int pred_vq_index, av_cold int ff_dcaadpcm_init(DCAADPCMEncContext *s) { - if (!s) - return -1; - s->private_data = av_malloc(sizeof(premultiplied_coeffs) * DCA_ADPCM_VQCODEBOOK_SZ); if (!s->private_data) return AVERROR(ENOMEM); @@ -224,8 +221,5 @@ av_cold int ff_dcaadpcm_init(DCAADPCMEncContext *s) av_cold void ff_dcaadpcm_free(DCAADPCMEncContext *s) { - if (!s) - return; - av_freep(&s->private_data); }