From patchwork Tue Oct 13 09:10:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 22911 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 185AC44B5BD for ; Tue, 13 Oct 2020 12:11:07 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0887868BBE6; Tue, 13 Oct 2020 12:11:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7569E68BB44 for ; Tue, 13 Oct 2020 12:10:59 +0300 (EEST) Received: by mail-wr1-f52.google.com with SMTP id n18so23079540wrs.5 for ; Tue, 13 Oct 2020 02:10:59 -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=KSvCi2Vbv3UgobXSx7+AbjSb6RbwFHwXOepIlCIaHiM=; b=nCb5oUeZgZDvGFE7nbc1/YREBe0/UasGHB/z2NxpdFaqkNDLhJl8iCZiPinNBeUn4o a23Mtg5CsXOX/iZNJhcMkXaojyE2TKNdILJQ2Ax8FiiG7GJDern/FD9Kj550WEquToda LF8BG5bfmIunhHu1F38vPUEZJiXEpegC3y1T88L/UXa6BS12oQwR7YnX8fjrAbqFkUXG rzPmaADvoGcTa3Z1yhn0clJIwd+cQOMVNvp+qcupebPOK9y/DPhzmidTxxpgRVG4nUAB izeWeJdxICb2eeP7HEJ+R408vUWEnzESAgHlP8hWPKz4mUhImy9b7k2YV4NWW8Ey3L8L 7tcA== 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=KSvCi2Vbv3UgobXSx7+AbjSb6RbwFHwXOepIlCIaHiM=; b=dOK3cZh3gXpzVz8boYQ/6KiqteI+I0Ca5V1g1RHLsuXX/5iJ5A2CycFDxKrLEy59Vk tMunBp1/RJlAF2Ru+7cf+J1E/ZKl16GJQNGkuLxxlQAUreQmJ2bEI3MoKZMhjmwJrFSR zoFjKqFFgE3PKzI4LOCTmFGWeFU+/gu38xDgzcPMa9X6VhlOAoSBKGngmqr2Z9zTsCrB IGW0rPMjy6TWVXTUJ/Xzzd5dcNnbHS1mq/hQ1an7ws/7qEmBTY+M4UbgEsU2HfZ23pWY W3qsogq+oZuYB5IB+j/5SNwbCCKAloiWIU8FEFD7J71mLXzcTqOtrczhxJg0uhzn0qjj LMDg== X-Gm-Message-State: AOAM532oWuUtHx5YJ7piHJ3bNDjp/dqdF88tHANhpiheLRJMlCv5cp2J jtMfNI0ijBx+kOjc4HYpyz7APcoK9Hk= X-Google-Smtp-Source: ABdhPJzl+kR8sZW+RVSGLfUDRTiK6lP7PuAqo8WCwLLMMAtMAO5/jOfgGMnezPmoUdjG0vJVh/iQDw== X-Received: by 2002:adf:df03:: with SMTP id y3mr14982433wrl.70.1602580258382; Tue, 13 Oct 2020 02:10:58 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id g83sm25913159wmf.15.2020.10.13.02.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 02:10:57 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 13 Oct 2020 11:10:16 +0200 Message-Id: <20201013091017.1899676-8-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201013091017.1899676-1-andreas.rheinhardt@gmail.com> References: <20201013091017.1899676-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 8/9] avcodec/v3/408enc: Remove empty close functions 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" Signed-off-by: Andreas Rheinhardt --- libavcodec/v308enc.c | 6 ------ libavcodec/v408enc.c | 7 ------- 2 files changed, 13 deletions(-) diff --git a/libavcodec/v308enc.c b/libavcodec/v308enc.c index 29b7f8bedd..0891251dea 100644 --- a/libavcodec/v308enc.c +++ b/libavcodec/v308enc.c @@ -68,11 +68,6 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt, return 0; } -static av_cold int v308_encode_close(AVCodecContext *avctx) -{ - return 0; -} - AVCodec ff_v308_encoder = { .name = "v308", .long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:4:4"), @@ -80,6 +75,5 @@ AVCodec ff_v308_encoder = { .id = AV_CODEC_ID_V308, .init = v308_encode_init, .encode2 = v308_encode_frame, - .close = v308_encode_close, .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE }, }; diff --git a/libavcodec/v408enc.c b/libavcodec/v408enc.c index a2ab66d911..d2d84d9c40 100644 --- a/libavcodec/v408enc.c +++ b/libavcodec/v408enc.c @@ -73,11 +73,6 @@ static int v408_encode_frame(AVCodecContext *avctx, AVPacket *pkt, return 0; } -static av_cold int v408_encode_close(AVCodecContext *avctx) -{ - return 0; -} - #if CONFIG_AYUV_ENCODER AVCodec ff_ayuv_encoder = { .name = "ayuv", @@ -86,7 +81,6 @@ AVCodec ff_ayuv_encoder = { .id = AV_CODEC_ID_AYUV, .init = v408_encode_init, .encode2 = v408_encode_frame, - .close = v408_encode_close, .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVA444P, AV_PIX_FMT_NONE }, }; #endif @@ -98,7 +92,6 @@ AVCodec ff_v408_encoder = { .id = AV_CODEC_ID_V408, .init = v408_encode_init, .encode2 = v408_encode_frame, - .close = v408_encode_close, .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVA444P, AV_PIX_FMT_NONE }, }; #endif