From patchwork Fri May 28 13:36:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 27972 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp549260iof; Fri, 28 May 2021 06:37:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjg17LPnEeHCW4QR+d2JlmzHy9dTX9qWsnYF+cQiVzDG3WueuUJw2xwuyGPyjix9ztMdi2 X-Received: by 2002:aa7:dc0b:: with SMTP id b11mr10000396edu.124.1622209027195; Fri, 28 May 2021 06:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622209027; cv=none; d=google.com; s=arc-20160816; b=Zcs51Ua54jvJxCLq9a07/bTTIAsS7jOMiIfVaUMKr6T4LG/445GaeE1w4YrZnR+k8C ZwNSd1CD5RWqrvfdjNzxc75JFfyUPUnl4sSRAauKpI7hnmvtWMa757ehjqfOjfBmJzyZ PnRfUUkrvshjta9ZzW5cTPCosLN2SVo0FwG7GHQHL55CvolOlQdUp5sKWJDeOTIH0IKI nlImXDPw9nNRn6qxwQlW1Xm7Bmq45x69GgoVBE2Ie2am+pEph8Mv9n9Bdf9LHfqyrm6V jrVieij8xCRJFXOaD1GMZo0ZrANYrq9LB6VyD1VRVmiQSIfC/ciz6/fEjsb3IHX9NgeD w1LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:mime-version:message-id:date :to:from:delivered-to; bh=0p/ZVO2k2pSDy2zZ3ImWpNbM8/2PioXEXqr8g/OkICs=; b=n9YgRJl2Dp3foCJLZ3CV/zpuTvLQIFUG/Nz8jeETOJQajL5QuDtsbqwmx8jg69tpCJ SY7GcUlxjbTCAt3U32Nmp0HuRNd6bWLvTnmZ1atkxdIUBddxotk8OUSgZcBLEqifNWmS fF4zVg5nXYk5WI/wxBFyVRupLVlaezkCeKBxpTLmexOpAtLK+jb9Grm9X7b4D9UyAYMl Px4o2n7a7XjYF7wkRFzedn+Oc5txvZq+vCIYneM2x8CfjohC1cUNQ2xcEve0GTDYu5SZ ND3RmpdKPLh64pfC8ZrYAKS1hJexcneDg6e9qWkTFxK9cU8ytUmIbAmEIMUYgrwv4+3A gDKg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kuaishou.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id f13si4993503eje.90.2021.05.28.06.37.06; Fri, 28 May 2021 06:37:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kuaishou.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3375D68068E; Fri, 28 May 2021 16:37:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgeu1.qq.com (smtpbgeu1.qq.com [52.59.177.22]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 40DA76804B5 for ; Fri, 28 May 2021 16:36:53 +0300 (EEST) X-QQ-mid: bizesmtp44t1622209006tv6y4p3b Received: from localhost (unknown [103.107.216.225]) by esmtp6.qq.com (ESMTP) with id ; Fri, 28 May 2021 21:36:45 +0800 (CST) X-QQ-SSF: 01100000004000Z0Z000B00A0020000 X-QQ-FEAT: HirWekLIAYKntb2Xx9HgMGk/z0DD4+UxjDz9e5bTNT3cF7RW/hPl54Qu67L/P TtvbtBPQ8SU4wk1KxsHvQMR5/a65XC4G8qOm5k040BIcAsNjDYoGHo0Xl/STKnnIFZtaXdY t92O8UbO3s2L4JZ+2T7jy7KyEkSowTeEBc4UrazrgfIqXC+Y0GYNCioZo+afWeKxM89PFby TOv3J+L93Rwuo/xftrG76kgM+sponEGvdZwpPR91S6/jkm+iiaRESSHrMS6yh+NO0dDmcMg RXbUlDZ3Fd/0mh85ygtsStHoAwlCkLCigQPFEDP2ENXdel X-QQ-GoodBg: 0 X-QQ-CSender: lq@chinaffmpeg.org From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Fri, 28 May 2021 21:36:42 +0800 Message-Id: <20210528133642.73467-1-liuqi05@kuaishou.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] doc/examples/muxing: remove unused arguments of open_video and open_audio 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 Cc: Steven Liu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: fQcNUqBd5mt2 Signed-off-by: Steven Liu --- doc/examples/muxing.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index fe1b9ded21..3986561b2f 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -242,8 +242,7 @@ static AVFrame *alloc_audio_frame(enum AVSampleFormat sample_fmt, return frame; } -static void open_audio(AVFormatContext *oc, const AVCodec *codec, - OutputStream *ost, AVDictionary *opt_arg) +static void open_audio(const AVCodec *codec, OutputStream *ost, AVDictionary *opt_arg) { AVCodecContext *c; int nb_samples; @@ -406,8 +405,7 @@ static AVFrame *alloc_picture(enum AVPixelFormat pix_fmt, int width, int height) return picture; } -static void open_video(AVFormatContext *oc, const AVCodec *codec, - OutputStream *ost, AVDictionary *opt_arg) +static void open_video(const AVCodec *codec, OutputStream *ost, AVDictionary *opt_arg) { int ret; AVCodecContext *c = ost->enc; @@ -592,10 +590,10 @@ int main(int argc, char **argv) /* Now that all the parameters are set, we can open the audio and * video codecs and allocate the necessary encode buffers. */ if (have_video) - open_video(oc, video_codec, &video_st, opt); + open_video(video_codec, &video_st, opt); if (have_audio) - open_audio(oc, audio_codec, &audio_st, opt); + open_audio(audio_codec, &audio_st, opt); av_dump_format(oc, 0, filename, 1);