From patchwork Sat Oct 12 01:28:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hwren X-Patchwork-Id: 15708 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 0208D44641A for ; Sat, 12 Oct 2019 04:28:45 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D41C7689AED; Sat, 12 Oct 2019 04:28:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from m15-112.126.com (m15-112.126.com [220.181.15.112]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ADEF3689A12 for ; Sat, 12 Oct 2019 04:28:38 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=tAoguDg9E90tPg/URN VInO6k3RE36qGLVo00Hz92qa8=; b=CkxrK/hDLaInK4b6zcFixFddL4mIovLFP8 8SvFOWpUS6q2cfpEWs7ZfR+D9qPFj62K/3lzjsn2ft80fDER1pZu8HwLRbX3FPqR nNeuGR1fjkzRO1UHDdPFH/q+IfMSZ6/9mFENOAxXQCao9u/mg+ygYzCByHhnUvvM Q3tRGQXAQ= Received: from localhost.localdomain (unknown [162.105.23.171]) by smtp2 (Coremail) with SMTP id DMmowABHHQ5ELKFdxXGFCQ--.55754S5; Sat, 12 Oct 2019 09:28:36 +0800 (CST) From: hwren To: ffmpeg-devel@ffmpeg.org Date: Sat, 12 Oct 2019 09:28:34 +0800 Message-Id: <1570843714-16477-3-git-send-email-hwrenx@126.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570843714-16477-1-git-send-email-hwrenx@126.com> References: <1570843714-16477-1-git-send-email-hwrenx@126.com> X-CM-TRANSID: DMmowABHHQ5ELKFdxXGFCQ--.55754S5 X-Coremail-Antispam: 1Uf129KBjvdXoWrZF4xAry7uF45tF48trW7twb_yoW3twb_A3 W5Ga4DJF4j9ay7tw4UCrW3Jwn2qw15uF4jkanrtr4agF9rX398uF1xWrn29Fs09ws0qryr Cw4DJr15Jry0gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU1Au47UUUUU== X-Originating-IP: [162.105.23.171] X-CM-SenderInfo: pkzuv0b06rjloofrz/1tbiuxdM6VpD+e3q4wAAsN Subject: [FFmpeg-devel] [PATCH 3/3] lavc/libxavs2: replace 'FrameRate' with 'fps' 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: hwrenx MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: hwrenx Remove deprecated paramete FrameRate (frame rate code) and use fps (frame rate). Avoid encoder warning. Signed-off-by: hwrenx --- libavcodec/libxavs2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 47ba74d..04f4ecb 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -113,8 +113,7 @@ static av_cold int xavs2_init(AVCodecContext *avctx) xavs2_opt_set2("InitialQP", "%d", cae->qp); } - ff_mpeg12_find_best_frame_rate(avctx->framerate, &code, NULL, NULL, 0); - xavs2_opt_set2("FrameRate", "%d", code); + xavs2_opt_set2("fps", "%d", avctx->framerate); cae->encoder = cae->api->encoder_create(cae->param); if (!cae->encoder) {