From patchwork Fri Nov 1 12:03:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Zhili X-Patchwork-Id: 16060 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 38F6144A366 for ; Fri, 1 Nov 2019 14:03:43 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1E8CB68B370; Fri, 1 Nov 2019 14:03:43 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpproxy21.qq.com (smtpbg704.qq.com [203.205.195.105]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 641AD68B370 for ; Fri, 1 Nov 2019 14:03:35 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1572609809; bh=ADm97e7laTDX2faZ0VF86fkXhsM2BK2M2SHQBteNamg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=SkpZRArydoIeacOvB98AlFVeWfhvrt96fu1MtW1UYkuG6HV2/7SkLmAW0YlSHn8GH aRbkuhiavlmIkoYxT4+AdDmacfb1mkS20lRr15b2ifUK+7ges4axFL2vAXQZ8eHWkY 9bL1EMmyS1TptBhhSmslwLkCmNB33QRmrcVouZpU= X-QQ-mid: esmtp5t1572609808ts67ph422 Received: from ZHILIZHAO-MB1.tencent.com (unknown [14.17.22.42]) by esmtp4.qq.com (ESMTP) with id ; Fri, 01 Nov 2019 20:03:28 +0800 (CST) X-QQ-SSF: 01000000000000N0UF2005000000002 X-QQ-FEAT: Tubeh+4qKFTlS+o3G9mBN5YGNG3Vfs/upD4Ig0yb84oYaVMcd157FM7a/z/kr 8mvN4BQiM9ILeu9jH+JeDXLXSc00EbIjbq/9Ci3KpwhYg/1QtISz7NbZrKKOMU2d2nySFxV ArSpFE4bygxiYwHvlvVQ8ZiMye5sgcnDrabSuMh5E2uFYVHXs49y/5kZvUkt8vjWpK0BYdV +noepgVgLLsW3otaIaGyP4feR8IPXzemnm02yVAMdIu3Q0f4X3O1MGkeGiYTTf+tgp+iBRE psdaL3DBYM4+Hwgro4/UgisbCaHcpESVlcFQ== X-QQ-GoodBg: 0 From: quinkblack@foxmail.com To: ffmpeg-devel@ffmpeg.org Date: Fri, 1 Nov 2019 20:03:13 +0800 Message-Id: <20191101120314.88956-3-quinkblack@foxmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191101120314.88956-1-quinkblack@foxmail.com> References: <20191101120314.88956-1-quinkblack@foxmail.com> MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:foxmail.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH v2 3/4] avformat/avformat.h: document add/new_side_data with the same type 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: Zhao Zhili Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Zhao Zhili --- libavformat/avformat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 6eb329f13f..acce242398 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -2162,6 +2162,8 @@ AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c); /** * Wrap an existing array as stream side data. * + * @note replace existing side data of the same type + * * @param st stream * @param type side information type * @param data the side data array. It must be allocated with the av_malloc() @@ -2177,6 +2179,8 @@ int av_stream_add_side_data(AVStream *st, enum AVPacketSideDataType type, /** * Allocate new information from stream. * + * @note replace existing side data of the same type + * * @param stream stream * @param type desired side information type * @param size side information size