From patchwork Tue Jan 2 13:58:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas George X-Patchwork-Id: 7077 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.79.195 with SMTP id r64csp14719633jad; Tue, 2 Jan 2018 05:58:25 -0800 (PST) X-Google-Smtp-Source: ACJfBovBm3wg1x/5vrVj820Zv8FkiqnKYpemz/cuowiI3RkEWI6SoeKEksBxWHkI4gMyJAg3E87w X-Received: by 10.223.151.146 with SMTP id s18mr19193246wrb.180.1514901505693; Tue, 02 Jan 2018 05:58:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514901505; cv=none; d=google.com; s=arc-20160816; b=IChtMnj/43eQcdDodred1dW0EbQvOv8gFWeNf2i7ysxJhJsuMVBEF+4G+mhLLBqYAP QdXlOedWe2uaxeUpcJoOIHEmv5HpEMGUiQTo4wSWQFUeBse6XWRYdRLSVy9UTJ9e0Xrq /r+w+8UpDwJKCJTaHlwwf+puRGKr6UL+MnqE0ClCR2UvjYjRUrXaA2dSNQ93TGvp/gGb 3Cn0ZpDdmvOax0ObzGWAp2/FI6XfRN8DcJ9j5VdEG4O0kT56jYl1YxSPlRCeh2zLe64e KA76wAMAp4JMKeSD5EnvbQl149JGOtSh6btwKz+iATUx99smt7EJXazWjGw/BA/mDZ25 hq3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=OFNCFw2Jo/WOtZLGlQTcXmIaEuFfMWpJsUvpnXeXCyA=; b=mpuVRpZsvrzPmL/6jWFavdzG8a3jbiKZZBpwm7AdznzewkEGSG027SkUQzgtureKNa xe+GULuTUbIQL2EjFEWlN+/Mhs0qDAn65bjAY/wWT2WSgeM6ogO8w0du9YDGwVNmgek9 GDnTu6pBj7093mUKTHBtIwkXXnuf4WGFmVxoB5XracQ+L5HJIHMk5TvMaBgQ5fFXaxuo DJDIT/BpjRCbKAZJYoqHK1zD1PhQtJ814NqpizQplOdi7Qy7NKUeeXuYlyuXFGLDhymO oWkM1NMr+fdkZoqEcWBd5WoKgOz1OoV1np+ryYcKRoC93PvIKLvwpoKc7Nw66LMDKvsa uadg== 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 o1si22730933wrh.206.2018.01.02.05.58.24; Tue, 02 Jan 2018 05:58:25 -0800 (PST) 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 8E059680D46; Tue, 2 Jan 2018 15:58:07 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D3638680872 for ; Tue, 2 Jan 2018 15:58:00 +0200 (EET) Received: from phare.normalesup.org (archicubes.ens.fr [129.199.129.80]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id w02DwGZ1053846 for ; Tue, 2 Jan 2018 14:58:16 +0100 (CET) Received: by phare.normalesup.org (Postfix, from userid 1001) id 67796E00C2; Tue, 2 Jan 2018 14:58:16 +0100 (CET) From: Nicolas George To: ffmpeg-devel@ffmpeg.org Date: Tue, 2 Jan 2018 14:58:13 +0100 Message-Id: <20180102135814.13657-1-george@nsup.org> X-Mailer: git-send-email 2.15.1 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef2.ens.fr [129.199.96.32]); Tue, 02 Jan 2018 14:58:16 +0100 (CET) Subject: [FFmpeg-devel] [PATCH 1/2] lavfi/framesync: document frame ownership for dualinput. 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Nicolas George --- libavfilter/framesync.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavfilter/framesync.h b/libavfilter/framesync.h index 9fdc4d1ae2..abf3bf552b 100644 --- a/libavfilter/framesync.h +++ b/libavfilter/framesync.h @@ -286,6 +286,9 @@ int ff_framesync_init_dualinput(FFFrameSync *fs, AVFilterContext *parent); * @param f0 used to return the main frame * @param f1 used to return the second frame, or NULL if disabled * @return >=0 for success or AVERROR code + * @note The frame returned in f0 belongs to the caller (get = 1 in + * ff_framesync_get_frame()) while the frame returned in f1 is still owned + * by the framesync structure. */ int ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1);