[FFmpeg-devel] [PATCH v9 2/3] fftools: add mem log flag and disable printing addresses by default
Gyan Doshi
ffmpeg at gyani.pro
Wed Apr 9 21:26:40 EEST 2025
On 2025-04-09 11:49 pm, softworkz wrote:
> diff --git a/fftools/opt_common.c b/fftools/opt_common.c
> index 2ac3fd4fb3..edf2f49d0b 100644
> --- a/fftools/opt_common.c
> +++ b/fftools/opt_common.c
> @@ -1304,6 +1304,12 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg)
> } else {
> flags |= AV_LOG_PRINT_DATETIME;
> }
> + } else if (av_strstart(token, "mem", &arg)) {
> + if (cmd == '-') {
> + flags |= AV_LOG_NO_PRINT_MEMADDRESS;
> + } else {
> + flags &= ~AV_LOG_NO_PRINT_MEMADDRESS;
> + }
> } else {
> break;
> }
You also need to update the block just before the end jump.
Regards,
Gyan
More information about the ffmpeg-devel
mailing list