From patchwork Sat Jul 23 14:09:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 36920 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1649:b0:8b:613a:194d with SMTP id no9csp1048033pzb; Sat, 23 Jul 2022 07:13:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjmNQK270H8pk6nhD4LCODaLsL/3nJ9hyTDEhLjw7s8UNxQVRZszPQZe9RYfAR9/T6drpM X-Received: by 2002:a05:6402:84a:b0:426:262d:967e with SMTP id b10-20020a056402084a00b00426262d967emr4459754edz.286.1658585611032; Sat, 23 Jul 2022 07:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658585611; cv=none; d=google.com; s=arc-20160816; b=e8CSOU/b1GkG3T3dCcS9z3+X+x1Obbq+lOyCZmBifKiDja3Qp7AJyYFBRJEATNKpxF dJsjLb9oPSuRNOUwUetTxw5AUik6SbLyvZ+nAGmY1uDnkexWUTS5+pU1/rFm8VEPum4N RoYuS9oXcpeVk7RpxB4R6SUUzEoyvqmPgb4ldhYnVlItbvA96VqE7lRmIBIE12MpCoq0 SChWkPhMNipWe9stcrcR4syMwfucGEkTA5jRPNs6LAhA1pFWwCPkEeV3+LGIO3eXutcz La+4bh5jVVTJPF9Rbh8wCM+g24uHMzPpDrTYrAYs+z+quWS6C1QbCSoONs38gS6degG4 xVnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=RMGMj0Po/lUihocO6JRk1zTUbS/XNZEqp5sF+OQ3QQA=; b=EPlXEX3+H9YvhV8nxyD0vWb9W3/wwGehDjpHrmaWemmuvCayhIoG77UhuucJbvRQBp FxDZjHrPP+wmNi6amtYG2yEEOfZVMN9rEuO7geTsQ5NneeBDfaryEhb0AljQS3T/bq00 Q8Vzg2UoqjhodM/Ij3jxrR3tC/1ItDNDVBfZc6BebQMbyMeGC3x21IMMD7/nXyAMx6T4 yXn/GDSx17eXc/4DtwwB4h9o5qHbs2/kkaP8yEiHdo9XuTnIkWQ88DWGEhh2rykskWDi mSmf/crrkC3z9DvsX2endJYMwL0/zdDXKmg7Gpqb1O9gdctbgEcgf9dEka4jFtmu5kib 3pbw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sc40-20020a1709078a2800b0072b97b3288dsi9806776ejc.510.2022.07.23.07.13.30; Sat, 23 Jul 2022 07:13:31 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9EB6B68B8DC; Sat, 23 Jul 2022 17:10:46 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6846F68B7CC for ; Sat, 23 Jul 2022 17:10:26 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 738DD240507 for ; Sat, 23 Jul 2022 16:10:22 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 6a7m9MYPztOZ for ; Sat, 23 Jul 2022 16:10:22 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 7E12D240511 for ; Sat, 23 Jul 2022 16:10:19 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 7F0EB3A0470; Sat, 23 Jul 2022 16:10:19 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sat, 23 Jul 2022 16:09:36 +0200 Message-Id: <20220723140952.31814-11-anton@khirnov.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220723140952.31814-1-anton@khirnov.net> References: <20220723140952.31814-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 11/27] fftools/ffmpeg_opt: drop a redundant assignment X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: lEH8UG5H3aj0 The codec type will be set by avcodec_alloc_context3(), there is no reason to set it manually. --- fftools/ffmpeg_opt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index f6e354355b..29bc4fd97f 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -1574,7 +1574,6 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e av_log(NULL, AV_LOG_ERROR, "Error allocating the encoding context.\n"); exit_program(1); } - ost->enc_ctx->codec_type = type; } ost->filtered_frame = av_frame_alloc();