From patchwork Thu May 17 09:24:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Zhili X-Patchwork-Id: 8997 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp3865693jad; Thu, 17 May 2018 02:25:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrT8mlkMA/hQNaZUYPCqtH6vvzT9cxVRDCsUe4QUDiznt9jFHlSvdkP4l4hYYTLXOLZ0xQ8 X-Received: by 2002:a1c:a95:: with SMTP id 143-v6mr1146817wmk.134.1526549117730; Thu, 17 May 2018 02:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526549117; cv=none; d=google.com; s=arc-20160816; b=kJHM/7AlGOGDAbotCmmq/Hz2xWIuG7xEhrhozuwr80st1gEWrbxH9hcB8uotGQzcLU zPolRcfeaf+yxSjsxaq5r25B8itJls0VopBYLfpENnqcl+ZLtvOrOTS9KPTYZrvYIOdk 6CrYU9kAh57FwLXUTtnynG2FT/y83amgOzevZlKNtZK5Q80d19QtB/Wapqv1hSy+jtY3 1vcAsYdVa6PrlfwwhbnpwuaCh2TvfmVASH4aAMPuMJOWlK+eHUgL8dxZMSbrPK7Fbw0e zRrE9V+ajOxeOVVY0zWs+sxjcEctDzS/OxaS19yCtC7Ei6jawBZOUZjjSJcfD3iTvk4e xWRA== 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:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=ekSYOn68hTrd8vlmtWZrRsvQE+5Mhdjrc3ZbLbkrEEw=; b=1JyFpGZse6IouOlYeWp+2g5WSyb4CvsUf/DHCD+YM5yEwN19Ny/PFUkaWeZy+Qb72Y 0IV+leRPujnsiTKpgGXUg5CuamZTypCP33smscyMQyQrqSKTmBrjPX6hi8xgILHpzOlq isAi8pwZI062CRiCb+i4gMxQhqBRIUcVyMyi5kBBzAlLY1m/nT8yyblnGgoyj73E7qtA pT1L8vLOGKFa5p2BWI31wlj07VvO//r5qZBWPLOC719ZS7EH5ugY2UbkorgCSvSeFcsn zJiBUaMvP0Qal0hPDqCXvLhg4CiuyQnEgfckQaQh/9A8IZpGJFTue555EWvor8r8HUsj MzsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=M79XDXsv; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2-v6si3813588wro.65.2018.05.17.02.25.16; Thu, 17 May 2018 02:25:17 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=M79XDXsv; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4561C68A400; Thu, 17 May 2018 12:24:36 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9C46D68A3F5 for ; Thu, 17 May 2018 12:24:28 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1526549101; bh=SKtHZfpgEFq4tgHl/X9H8ANT/LFx6NJmiwe8DS57oB8=; h=From:To:Cc:Subject:Date:Message-Id; b=M79XDXsvI6sY7BVduZU+WaZqtfv0nCr4YFVxpCrhmKWNtT+QyuWZhbJ018mulRERB 4oYDHGhx+7fvCovO+4wKH7yXdSTujrXSpBJ/U+Our8LYzr5Zhkr5sQq4INDVjtJjDY COSpdFyeY20/gjAn7n0gH+OuthvDSciGlenGbu68= X-QQ-mid: esmtp11t1526549099t4f56ck2z Received: from localhost.localdomain (unknown [119.145.5.45]) by esmtp4.qq.com (ESMTP) with id ; Thu, 17 May 2018 17:24:49 +0800 (CST) X-QQ-SSF: A1000000000000F0F71000000000001 X-QQ-FEAT: +c2Kczbw9d30sMJiW95EV1p5Xwmf6jGVkHh5RBzd7Ko8TW8oCgeMNFSnVhuFV 5LiERdw+nzWusFSorLPzysm53egYopo9nvxVj4KMgy15RBEKuDEatFhNO0Fs+G+XwrEQluZ 05UBSEY8v6lP0XdJAYiswvpSTt4/OpDSQeN0BfqDqnGLY9uzkH33ZjGQpQKapwiw8SL+y2/ cwrTPMspCXwkgFdGY3rIlsRnVbvnfGNx/P7eCiGkN953tLLcJXO0ujkGFYfj9mL54XFQvNq /S9TBbCfKXrpYM5Ma4znbFOc4= X-QQ-GoodBg: 0 From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Thu, 17 May 2018 17:24:48 +0800 Message-Id: <20180517092448.22315-1-quinkblack@foxmail.com> X-Mailer: git-send-email 2.9.5 X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:foxmail.com:bgforeign:bgforeign3 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avutil/error: document av_err2str 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavutil/error.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavutil/error.h b/libavutil/error.h index 71df4da..b357bfa 100644 --- a/libavutil/error.h +++ b/libavutil/error.h @@ -115,6 +115,9 @@ static inline char *av_make_error_string(char *errbuf, size_t errbuf_size, int e /** * Convenience macro, the return value should be used only directly in * function arguments but never stand-alone. + * + * @warning The macro uses compound literal which was introduced in C99. It may + * not work in C++. */ #define av_err2str(errnum) \ av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)