[FFmpeg-devel] [PATCH] avutil/error: document av_err2str

Nicolas George george at nsup.org
Thu May 17 12:27:35 EEST 2018


Zhao Zhili (2018-05-17):
> ---
>  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)

No objection from me.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180517/71786bf0/attachment.sig>


More information about the ffmpeg-devel mailing list