[FFmpeg-devel] [PATCH v7 1/2] libavutil/log: Add capability to prefix loglines with current time or current date+time
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Aug 10 22:03:16 EEST 2021
Soft Works:
> Signed-off-by: softworkz <softworkz at hotmail.com>
> ---
> doc/APIchanges | 3 +++
> libavutil/log.c | 33 +++++++++++++++++++++++++++++----
> libavutil/log.h | 10 ++++++++++
> libavutil/version.h | 2 +-
> 4 files changed, 43 insertions(+), 5 deletions(-)
>
> diff --git a/doc/APIchanges b/doc/APIchanges
> index 6eefc7fc33..e64f34d677 100644
> --- a/doc/APIchanges
> +++ b/doc/APIchanges
> @@ -14,6 +14,9 @@ libavutil: 2021-04-27
>
> API changes, most recent first:
>
> +2021-08-09 - xxxxxxxxxx - lavu 57.4.100 - log.h
> + Add new logging flags: AV_LOG_PRINT_TIME and AV_LOG_PRINT_DATETIME
> +
> 2021-08-02 - xxxxxxxxxx - lavc 59.4.100 - packet.h
> Add AVPacket.opaque, AVPacket.opaque_ref, AVPacket.time_base.
>
> diff --git a/libavutil/log.c b/libavutil/log.c
> index 66defa9c42..36dd5759ae 100644
> --- a/libavutil/log.c
> +++ b/libavutil/log.c
> static void format_line(void *avcl, int level, const char *fmt, va_list vl,
> - AVBPrint part[4], int *print_prefix, int type[2])
> + AVBPrint part[5], int *print_prefix, int type[2])
> {
> - AVClass* avc = avcl ? *(AVClass **) avcl : NULL;
> + AVClass *avc = avcl ? *(AVClass **) avcl : NULL;
Still a spurious change.
> av_bprint_init(part+0, 0, AV_BPRINT_SIZE_AUTOMATIC);
> av_bprint_init(part+1, 0, AV_BPRINT_SIZE_AUTOMATIC);
> av_bprint_init(part+2, 0, AV_BPRINT_SIZE_AUTOMATIC);
> av_bprint_init(part+3, 0, 65536);
> + av_bprint_init(part+4, 0, AV_BPRINT_SIZE_AUTOMATIC);
>
More information about the ffmpeg-devel
mailing list