From patchwork Sun Jun 21 08:53:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 20535 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 E9C7544B677 for ; Sun, 21 Jun 2020 11:54:23 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D818F68B82E; Sun, 21 Jun 2020 11:54:23 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D138368B841 for ; Sun, 21 Jun 2020 11:54:16 +0300 (EEST) Received: by mail-wr1-f65.google.com with SMTP id q2so11266335wrv.8 for ; Sun, 21 Jun 2020 01:54:16 -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=w75xrcLNn7QNqHyXHVW29tSugJV+wbDG32IVJ1ePA9Q=; b=ghTh4+RNo5QsJpmbWYWgnMMrCTdEbmCTxOG9z3J+ZLRCyWuM/rptEgPhFMDglq8rOc J0q1YJn/oS1vhWcW6PooPaul2BISDVgqsEKS4jsiLym4GU0nX+143RLV6mMIP7DgYbwI WMNPOcH67wGi3O3ZFgjDVu8q80+hIkXDHW5bOXmMD7QAHjtY+n+IyeNHT7/v4mwU+m89 alUoLHHIKWIN+Dsjlos4IhQALeoyaF45O5e4je3xsEH31+9+a4QPKP7XODITWKk9ak6R FIz7Pkf4QKJe57+UKu6eOXf8L1ewPnY6DTHo3dhlgUb5mX96NiSURwRIvqLUlwBGZbDd NTug== 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=w75xrcLNn7QNqHyXHVW29tSugJV+wbDG32IVJ1ePA9Q=; b=ZEQGV5KJUQmFc9CtkA3NQDGUaGbmnpZpfnszFIfSjtYvK8mB5YODExBl3jZELM7iof 6RPh7oDjuqZaw/JZTFS+xix/e6K1i/COhSPTKve1IVdVox2Zh12eyMzKYQKCrx6MqkKO PjrkwuSse4QJ775HAvbRNbBjGSIxPLpomwWa+hHTxRvCrItXkkKUJ8ZApMyMtVcj7af0 w3vWkbHpvZ0uE3iXKqmg5AOFjNRVGmIekHDZ0zW4hQh5wlG1PNng0U9IfKORxYwl27of IhAzNLaKI4EtMr5yWJxSq2Iz6q1fSSETNHXeR7952YvD3Y8xuQuDHSGe3sAbVk/DVW/e XA5A== X-Gm-Message-State: AOAM532nYrxg8mzJ/1ogIlJYzhPYsJ/6eI++bv1GpGpOLncR+nh9cRqO Rwqib/ozItJ0Ym+xK0BQQj3VB0YX X-Google-Smtp-Source: ABdhPJzJtWd0uMvFlGhBZrjOYyfH0WphGLB5H0A+lCz+EsLaO20geYKpRGYXS/KwBIcoguUsQKimUg== X-Received: by 2002:adf:ed87:: with SMTP id c7mr12944690wro.108.1592729656079; Sun, 21 Jun 2020 01:54:16 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1ab57.dynamic.kabel-deutschland.de. [188.193.171.87]) by smtp.gmail.com with ESMTPSA id b143sm12616054wme.20.2020.06.21.01.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 01:54:15 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 21 Jun 2020 10:53:48 +0200 Message-Id: <20200621085349.22370-4-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200621085349.22370-1-andreas.rheinhardt@gmail.com> References: <20200621085349.22370-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/5] avformat/avformat: Improve documentation of av_stream_get_side_data 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" Document that it also sets the size in case the desired side data is absent (if the pointer has been supplied). Signed-off-by: Andreas Rheinhardt --- libavformat/avformat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 21c282a100..e91e7f1d33 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -2189,7 +2189,8 @@ uint8_t *av_stream_new_side_data(AVStream *stream, * * @param stream stream * @param type desired side information type - * @param size pointer for side information size to store (optional) + * @param size If supplied, *size will be set to the size of the side data + * or to zero if the desired side data is not present. * @return pointer to data if present or NULL otherwise */ uint8_t *av_stream_get_side_data(const AVStream *stream,