From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 6A8F544385 for ; Mon, 9 Jan 2023 07:13:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2F30A68BC6C; Mon, 9 Jan 2023 09:12:48 +0200 (EET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6D50868BC3F for ; Mon, 9 Jan 2023 09:12:41 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673248366; x=1704784366; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wfurTrTjYBY9jeZ1HGW7NFS8+eX2YXAN1R5hB5+jOeI=; b=Xua73faFCWUXBXjH3DI/d3GVQtJlFpUQWfpO++hKIHh6tUqq8jFAHNrO fvu8yi2DlTikXnUt12oAfJMTaVjXwCS6PU7MPy1NXZlmOUx6gOnDAGN6E BAqXyO/IUpaGhGiW6BWBf8ExDms86xBYJsOOY4x0FE/bH1Mbuer8yK7bR D/BrQQIWIq5ZevW50xFHXO8fyZFmuy3PQPdSRv0Ly6/v7dCoCRDjvrRjF GD8fw/EoeradJ9g4PMYbZjmM/LldkT9A+DH7QfAnD4Pm3vV2wdcDE1rhD BRucFJi9yq3kX5bKCv+F3UoSg0A3yTMBYc4t9anfUa04sAlR9/0q0UT51 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="385110852" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="385110852" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2023 23:12:33 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="745262822" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="745262822" Received: from xhh-tgl64.sh.intel.com ([10.238.2.19]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2023 23:12:32 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Mon, 9 Jan 2023 15:12:09 +0800 Message-Id: <20230109071210.1829699-7-haihao.xiang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230109071210.1829699-1-haihao.xiang@intel.com> References: <20230109071210.1829699-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 7/8] lavfi/qsvvpp: set output frame durations 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: Haihao Xiang Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Haihao Xiang Signed-off-by: Haihao Xiang --- libavfilter/qsvvpp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 064b105a17..f074bf9978 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -503,6 +503,11 @@ static QSVFrame *query_frame(QSVVPPContext *s, AVFilterLink *outlink) return NULL; } + if (outlink->frame_rate.num && outlink->frame_rate.den) + out_frame->frame->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); + else + out_frame->frame->duration = 0; + out_frame->frame->width = outlink->w; out_frame->frame->height = outlink->h; out_frame->surface.Info = s->vpp_param.vpp.Out; -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".