From patchwork Tue Apr 21 02:31:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 19124 Return-Path: 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 8C08344AB6E for ; Tue, 21 Apr 2020 05:32:40 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 75F9C68B9D4; Tue, 21 Apr 2020 05:32:40 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 40EFA68B9B6 for ; Tue, 21 Apr 2020 05:32:33 +0300 (EEST) Received: by mail-wr1-f68.google.com with SMTP id s10so5521367wrr.0 for ; Mon, 20 Apr 2020 19:32:33 -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=bpjvJCLpBnGes+nOCRrEFBijI8mEdwVUy4CoBGikygg=; b=MXsxtbk+y34o2EVzggGXe4lCc5r+00zaGm4CqgaQiSXOvaZBTmE89++uknmeB/yaun M63z6YNgpVLcUUEoCBEk1+xKkBzAq+H88i4TkuZCZk/m3rEleCHe5wkFYeAopBXZGFCz GB4ld/YumOIW0OFvNfVlOQ3GONSK1ResAF0QfRbLGHJdk1RgxlNHsqacDXS/HJkouczU hstzsd4OGBgEBz8iwCxbkBOjvRosJ7lTrShTojEX8qOC9R1fy8+4oD9nIG8tUAb+KqhU vf0VwrO6UcfKd0afxvXf4frdUTcoZCHNaq9jaItC13g+RgCH79e21ZUxIRmnEmQP7GqB qPDQ== 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=bpjvJCLpBnGes+nOCRrEFBijI8mEdwVUy4CoBGikygg=; b=ICr0Smwqt5Cp8it4SEtqQxR/SoSELaWjSpdJQ63YdjdBD5j/d82VE5DxDrZKVas8Yt J+01nTmnDbNNgVRRxqzJt3MQliXX5vnFQTeW1lJwdqRGMBMJu2JlKLcnQQfP/ksr8A7x VSU7mPxor64N9c4ZH6OCif0rjMOX2YfQCtHn4gJrEW4/XTHbOxlsc8z2WS6AZHZD6/gr /NgqdYZzhiC6Jpe6Vsn2O4j4piwhhvVfbT5Y7BrRDS060L99fobqNA0SA2Knfzw54k9d QD018nGOI2rapK6mgjpdKAbc4MOG0JZFaM2gr8vMhMATOk7XN5rmy0nJs+oJwesU8Krf uHMA== X-Gm-Message-State: AGi0PuaguhykJ3F7mkl64F/li8eVtIq56AdPsjFGT8TfOlxQHGZ+yOec GENzLHq1c/RuwoC43/P+T83FHysD X-Google-Smtp-Source: APiQypLTf0ZcISl0ioyyfS6nRcWUlUNiB1SOn/Ok/ygLZi1DKPCnSrQK/2YbPDHXIMNIQL+0Vhl/Kw== X-Received: by 2002:a5d:4f0d:: with SMTP id c13mr19225800wru.49.1587436352427; Mon, 20 Apr 2020 19:32:32 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1ab57.dynamic.kabel-deutschland.de. [188.193.171.87]) by smtp.gmail.com with ESMTPSA id m14sm1708656wrs.76.2020.04.20.19.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 19:32:31 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 21 Apr 2020 04:31:51 +0200 Message-Id: <20200421023153.25008-6-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200421023153.25008-1-andreas.rheinhardt@gmail.com> References: <20200421023153.25008-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/8] avcodec/dump_extradata_bsf: Remove unnecessary header 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 Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Since 33d18982fa03feb061c8f744a4f0a9175c1f63ab (the commit that introduced the new bsf API) allocating an enlarged buffer in case extradata needs to be added to a packet is done via av_new_packet(), so that libavutil/mem.h is no longer needed. Furthermore, remove libavutil/log.h. This function uses something provided by it (an AVClass), yet it does so only for AVOptions, not for logging purposes (there is no av_log() here), so only including libavutil/opt.h seems appropriate. Signed-off-by: Andreas Rheinhardt --- libavcodec/dump_extradata_bsf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/dump_extradata_bsf.c b/libavcodec/dump_extradata_bsf.c index 0b6d404792..fbff795380 100644 --- a/libavcodec/dump_extradata_bsf.c +++ b/libavcodec/dump_extradata_bsf.c @@ -23,8 +23,6 @@ #include "avcodec.h" #include "bsf.h" -#include "libavutil/log.h" -#include "libavutil/mem.h" #include "libavutil/opt.h" enum DumpFreq {