| Branch: | Revision:

ffmpeg / libavutil / log.c @ 08675bb3

History | View | Annotate | Download (4.9 KB)

# Date Author Comment
6841c8c5 05/09/2011 02:50 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    log: Fix an oob array read.
    cosmetics: trim trailing whitespace in postproc
    Ban strncpy() it's too easy to misuse.
    psymodel: Remove wrapper functions.
    aacenc: Replace loop counters in aac_encode_frame() with more descriptive 'ch' and 'w'....
847aaec6 05/08/2011 08:34 PM Alex Converse

log: Fix an oob array read.

1a5e4fd8 05/04/2011 04:20 AM Alex Converse

Replace strncpy() with av_strlcpy().

0247bdee 04/29/2011 08:46 PM Reinhard Tartler

Fix races in default av_log handler

Prevent competing threads from overwriting (shared) buffers.

Original patch by: Michael Niedermayer <>

10d2ae8c 04/21/2011 01:37 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    Makefile: Include dependencies for test tools, too
    Remove a version check in av_log made unnecessary by the big bump.
    update last major version increase dates in APIchanges
    Reduce picture size for yadif....
63de9e7d 04/20/2011 04:19 PM Diego Biurrun

Remove a version check in av_log made unnecessary by the big bump.

efb5fa79 04/20/2011 02:48 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master: (37 commits)
    In avcodec_open(), set return code to an error value only when an error occurs instead of unconditionally at the start of the function.
    lavc: remove reference to opt.h from Makefile.
    prefer avio_check() over url_exist()...
490a022d 04/19/2011 05:04 PM Anton Khirnov

lavu: remove misc disabled cruft

48ee302e 03/25/2011 01:24 AM Michael Niedermayer

Fix apparently exploitable race condition.
Signed-off-by: Michael Niedermayer <>

0a51362b 03/25/2011 12:16 AM Michael Niedermayer

log:Sanitize string of most control chars before printing.
This may be security relevant depending upon the used terminal.

Signed-off-by: Michael Niedermayer <>

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

dfaa9f3c 01/01/2011 08:08 PM Daniel Verkamp

Recognize FFMPEG_FORCE_NOCOLOR environment variable on Win32

Fixes issue 2461

Originally committed as revision 26186 to svn://

3011ecde 12/06/2010 09:47 PM Stefano Sabatini

Introduce FFMPEG_FORCE_NOCOLOR, with the same meaning and use of
NO_COLOR (but properly prefixed for avoiding namespace conflicts).

Originally committed as revision 25899 to svn://

12998340 12/05/2010 01:56 PM Etienne Buira

Allow to force colored output.

Patch by Etienne Buira, etienne d buira d lists a free d fr

Originally committed as revision 25888 to svn://

d7cd001f 09/24/2010 04:18 PM Michael Niedermayer


Originally committed as revision 25178 to svn://

8a190533 09/24/2010 04:18 PM Michael Niedermayer

Cosmetic (rename detect_repeats to is_atty which matches the truth)

Originally committed as revision 25177 to svn://

1c1c80f0 09/24/2010 03:37 PM Michael Niedermayer

2nd try to fix av_log() repeated detection

Originally committed as revision 25174 to svn://

c157fe63 09/14/2010 12:17 AM Michael Niedermayer

Limit av_log repeat detection to terminals so as to avoid filling files with
lots of mess.

Originally committed as revision 25117 to svn://

fd3064b6 07/28/2010 12:08 PM Michael Niedermayer

Make sure "Last message repeated" is printed.

Originally committed as revision 24573 to svn://

50061b62 06/25/2010 04:36 AM Jai Menon

Print a space after the AVClass prefix.
This improves readability a bit.

Originally committed as revision 23767 to svn://

3c467bac 06/14/2010 08:51 AM Martin Storsjö

Fix compilation on windows CE

Originally committed as revision 23600 to svn://

db16e3ca 06/09/2010 06:30 PM Ramiro Polla

log.c: Use parameter passed to macro instead of the equivalent local variable
in the only function that uses the macro.

Originally committed as revision 23555 to svn://

4855f867 06/09/2010 06:13 PM Ramiro Polla

Add win32 console color output.
Based on patches by James Darnley <james dot darnley at gmail dot com>.

Originally committed as revision 23554 to svn://

6e34a558 06/09/2010 06:10 PM Ramiro Polla

Move ansi color array to outside of av_log_default_callback(). Do not pass
ansi color code to colored_fputs(), and pass instead the error level so the
proper color code may be used.

Originally committed as revision 23553 to svn://

a1c027e9 06/09/2010 06:07 PM Ramiro Polla

Rename use_ansi_color to use_color so it is not ANSI-specific.

Originally committed as revision 23552 to svn://

4880cfd9 05/19/2010 10:51 PM Michael Niedermayer

Print parent log context too, if available.

Originally committed as revision 23200 to svn://

8d2a5139 05/19/2010 10:45 PM Michael Niedermayer

av_default_item_name() so Simply AVClasses need 1 function less.

Originally committed as revision 23198 to svn://

3fe1ec39 05/08/2010 08:41 PM Michael Niedermayer

Add means to adjust the log level per context.

Originally committed as revision 23059 to svn://

62044024 04/23/2010 09:27 PM Michael Niedermayer

4th try at getting ansi colors working with a default of color=yes_please.
Colors will only be used if the TERM env var is set and NO_COLOR is not set.

Originally committed as revision 22957 to svn://

aebfb457 04/23/2010 01:15 PM Michael Niedermayer

Trying _WIN32 for win32 detection.

Originally committed as revision 22953 to svn://

7328cdfa 04/23/2010 08:11 AM Michael Niedermayer

Merge the 2 ANSI ESC codes.

Originally committed as revision 22952 to svn://

841073ce 04/23/2010 07:33 AM Michael Niedermayer

Reenable ANSI colors, use method from VLC as suggested by ramiro.
Please tell us asap if this breaks for your platform & terminal.

Originally committed as revision 22951 to svn://

2c4b87ea 04/22/2010 08:39 PM Michael Niedermayer

Disable ANSI color code until we figured out how to detect ANSI support in
the used terminal.

Originally committed as revision 22948 to svn://

51e026d1 04/22/2010 06:58 PM Michael Niedermayer

Coloring the log with ANSI.
Ive checked this on black and white background and found no problem in terms
of readability.
flames welcome.

Originally committed as revision 22946 to svn://

ba87f080 04/20/2010 02:45 PM Diego Biurrun

Remove explicit filename from Doxygen @file commands.

Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://

e244f54e 12/03/2009 06:15 PM Ramiro Polla

Make av_log_level static at next lavu major version bump.

Originally committed as revision 20721 to svn://

b9c353ff 02/22/2009 05:53 PM Michael Niedermayer

Compact repeated messages to "Last message repeated x times".

Originally committed as revision 17531 to svn://

bad5537e 02/01/2009 02:00 AM Diego Biurrun

Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 16912 to svn://

7d685b48 01/28/2009 11:16 PM Diego Biurrun

spelling/grammar/consistency review part III

Originally committed as revision 16849 to svn://

77652a6a 01/25/2009 10:40 PM Diego Biurrun

C files should #include the header files of the same name.

Originally committed as revision 16792 to svn://

c3b9f5fb 08/06/2008 12:04 PM Benoit Fouet

Remove a useless directive.

Originally committed as revision 14645 to svn://

2daefd2c 08/06/2008 12:03 PM Benoit Fouet

Cosmetics: indentation

Originally committed as revision 14644 to svn://

b1e12f99 07/15/2008 05:17 PM Alexander Strange

Print the address of the AVCodecContext in av_log().
This makes debug output much easier to read when the
same codec is open more than once.

Originally committed as revision 14237 to svn://

a309073b 12/12/2007 09:48 PM Måns Rullgård

use av_log_get/set_level()

Originally committed as revision 11209 to svn://

3ec9a787 03/04/2007 11:04 PM Panagiotis Issaris

Move the unaltered Doxygen docs from the log source code to the accompanying
header file.

Originally committed as revision 8225 to svn://

0f482cfc 02/20/2007 12:41 PM Panagiotis Issaris

Adds Doxygen docs for the av_log function.

Originally committed as revision 8040 to svn://

411983c1 01/13/2007 05:10 PM Axel Holzinger

Allow to uninstall a custom log callback
patch by Axel Holzinger % aholzinger A gmx P de %
original thread:
date: Jan 11, 2007 4:54 PM
subject: [Ffmpeg-devel] [PATCH] uninstall custom log callback

Originally committed as revision 7446 to svn://

b78e7197 10/07/2006 03:30 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://

918a4591 07/20/2006 11:55 AM Michael Niedermayer

removing redundant mess next time we break compatiility

Originally committed as revision 5804 to svn://

4b45de0e 07/18/2006 11:00 AM Luca Abeni

Move av_log() & friends to libavutil

Originally committed as revision 5781 to svn://