[FFmpeg-devel] [PATCH] Add log severity level to default log formatting

hjiodjf 97xgw46 jfbvxt at gmail.com
Thu Apr 24 19:31:00 CEST 2014


On Sat, Mar 29, 2014 at 5:07 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Thu, Feb 27, 2014 at 03:59:11PM -0800, hjiodjf 97xgw46 wrote:
>> On Tue, Feb 18, 2014 at 3:14 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>> > Does it add these messages unconditionally?
>> > Please add an option that is disabled by default.
>> >
>> > Carl Eugen
>>
>> Here is a patch against git HEAD. It does add these messages
>> unconditionally. I am not opposed to making it optional, but I don't
>> see where to add this option. av_log_format_line is part of the public
>> API and its signature is:
>>
>> void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl,
>>                         char *line, int line_size, int *print_prefix)
>
> you can add a flag similar to the existing
>
> #define AV_LOG_SKIP_REPEATED 1
>

I've taken michaelni's advice and implemented an AV_LOG flag and
corresponding CLI option for this feature. I hope the latest
incarnation of this patch can be reviewed, and more importantly, a
decision made on if this feature is wanted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-AV_LOG_PRINT_LEVEL-flag-to-include-log-severity-.patch
Type: application/octet-stream
Size: 7020 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140424/f1ec7b44/attachment.obj>


More information about the ffmpeg-devel mailing list