summaryrefslogtreecommitdiff
path: root/libavutil/log.c
Commit message (Collapse)AuthorAge
* avutil/log: Replace the number by macro for bprint initJun Zhao2018-06-17
| | | | | | Replace the number by macro for bprint init. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avutil/log: print level prefix also when no AVClass context is availableTobias Rapp2018-03-16
| | | | | | | | Adds the level prefix to all log messages, except those with level <= AV_LOG_QUIET as they seem to be used for flushing the log buffer. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avutil/log: use thread wrappers for the locking functionalityJames Almer2018-01-04
| | | | | | | | w32threads and os2threads both support static mutex initialization now, so don't limit it to pthreads only. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e'James Almer2017-11-11
|\ | | | | | | | | | | | | * commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e': Remove support for building for mingw32ce (Windows CE) Merged-by: James Almer <jamrial@gmail.com>
* | Fix all -Wformat warnings raised by DJGPPClément Bœsch2017-03-29
| |
* | Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-11
|\| | | | | | | | | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avutil/log: added test case for av_log_format_line2Andreas Weis2016-04-27
| | | | | | | | | | Signed-off-by: Andreas Weis <github@ghulbus-inc.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/log: added av_log_format_line2 which returns buffer lengthAndreas Weis2016-04-27
| | | | | | | | | | | | | | | | | | The new function behaves the same as av_log_format_line, but also forwards the return value from the underlying snprintf call. This will allow callers to accurately determine the size requirements for the line buffer. Signed-off-by: Andreas Weis <github@ghulbus-inc.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/log: fix zero length gnu_printf format string warningGanesh Ajjanagadde2015-09-17
| | | | | | | | | | | | | | | | | | This should fix warning reported by fate client: http://fate.ffmpeg.org/report.cgi?time=20150917113121&slot=x86_32-linux-gnu-gcc-4.5.1-have_6regs. Untested. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'eaa2d123f0a643664721593d248ece6bcd85f1e6'Michael Niedermayer2015-04-20
|\| | | | | | | | | | | | | | | | | | | | | * commit 'eaa2d123f0a643664721593d248ece6bcd85f1e6': log: Print a full backtrace along with error messages under Valgrind Conflicts: libavutil/log.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Print a full backtrace along with error messages under ValgrindVittorio Giovara2015-04-20
| | | | | | | | | | | | | | | | Useful to understand where and in what execution state a certain message is generated. It is enabled only when optimizations are disabled, since function names are not printed otherwise. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e'Michael Niedermayer2015-04-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e': log: Introduce a more verbose debug level Conflicts: doc/APIchanges doc/fftools-common-opts.texi libavutil/log.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Introduce a more verbose debug levelVittorio Giovara2015-04-19
| | | | | | | | And deprecate av_dlog macro.
| * log: Unbreak no-tty support on 256color terminalsLuca Barbato2014-09-26
| |
| * log: Unbreak windows supportLuca Barbato2014-04-03
| | | | | | | | Add the missing define.
* | Loose mplayer in MPlayer/incoming/Michael Niedermayer2014-06-03
| | | | | | | | | | Found-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add direct link to ML in missing_feature_sample()Michael Niedermayer2014-06-03
| | | | | | | | | | Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: fix memleak from 669a09fb372fa58ff913ebc326cb64bb3e8e7928Michael Niedermayer2014-04-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.tue46wsdgxfjrt2014-04-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: add av_log_get_flags()Michael Niedermayer2014-04-12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: factor "level != AV_LOG_INFO/8" checks outMichael Niedermayer2014-04-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log: allow color highlighting in Cygwin's minttyJames Darnley2014-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure will detect the availability of the Windows' console functions and set HAVE_SETCONSOLETEXTATTRIBUTE. Meaning av_log will use those functions to control colours. When ffmpeg is run in Cygwin's mintty terminal emulator it will not use colour highlighting in this case. Mintty responds to the usual escape code colours (it even supports 256 colours). Windows' cmd.exe does not. Fortunately it seems that Cygwin's emulation layer now translates the basic 16 colours into Windows' Console command functions. That means that we can have av_log use the standard colour commands and let ffmpeg print colours in both mintty and cmd. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: remove stray ;Michael Niedermayer2014-04-03
| | | | | | | | | | | | | | regression since 5a18b215f7138c0bd59f27389050b0311fa4a549 Reported-by: J_Darnley Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: fix negative log levelsMichael Niedermayer2014-04-03
| | | | | | | | | | | | These where broken by 7763118cae4eb468b032dbd29af15a011c2c233b Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: add code to test av_log()Michael Niedermayer2014-04-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-04-03
|\| | | | | | | | | | | | | | | | | | | * qatar/master: log: Do not assume the TERM variable is always set Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Do not assume the TERM variable is always setLuca Barbato2014-04-03
| |
* | Merge commit '28b9ac4e48f3405a82e8e87ead336188215cf1e6'Michael Niedermayer2014-04-03
|\| | | | | | | | | | | | | | | | | | | * commit '28b9ac4e48f3405a82e8e87ead336188215cf1e6': log: Remove undefined behaviour Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Remove undefined behaviourLuca Barbato2014-04-03
| |
* | Merge commit '7763118cae4eb468b032dbd29af15a011c2c233b'Michael Niedermayer2014-04-03
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '7763118cae4eb468b032dbd29af15a011c2c233b': log: Support for 256color terminals Conflicts: doc/APIchanges libavutil/log.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Support for 256color terminalsLuca Barbato2014-04-03
| | | | | | | | | | | | | | | | | | And provide extended coloring capabilities for debugging. The default colors do not change in 256 more to keep supporting people using Black on White, White on Black and Solarized terminals. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | log: Factorize check_color_terminal() outLuca Barbato2014-04-03
| |
* | lavu/log: add device categoriesLukasz Marek2014-03-03
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* | Merge commit '25a1ba814ad80056247fd357ec4c6911324a3f66'Michael Niedermayer2014-02-12
|\| | | | | | | | | | | | | | | | | | | * commit '25a1ba814ad80056247fd357ec4c6911324a3f66': log: Have function parameter names match between .c and .h file Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Have function parameter names match between .c and .h fileDiego Biurrun2014-02-12
| | | | | | | | This fixes two related Doxygen warnings.
* | avutil/log: skip IO calls on empty stringsMichael Niedermayer2013-12-06
| | | | | | | | | | | | These occur when no context is set for example, thus they are common Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: skip setting color for default (AV_LOG_INFO) levelMichael Niedermayer2013-12-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: merge calls that set ansi color and print the stringMichael Niedermayer2013-12-06
| | | | | | | | | | | | about 1/3 or so faster Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: check that len is within the buffer before reading itMichael Niedermayer2013-11-27
| | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_19d6979_6857_mmw_deadzy.ogg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: make default av_log callback thread safeMichael Niedermayer2013-10-23
| | | | | | | | | | | | This uses a pthread mutex Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: fix race between setting and using the log callbackMichael Niedermayer2013-10-17
| | | | | | | | | | Found-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: Use bprint for partMichael Niedermayer2013-08-10
| | | | | | | | | | | | This should fix the issue with strings longer than 1024 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/log: do not skip overwritten lines.Nicolas George2013-08-07
| | | | | | | | | | | | If the line ends with \r, it will not flood the tty, and the "Last message repeated" line would overwrite it. Fix bug introduced by c25d1ba.
* | lavu/log: print prefix after \r.Nicolas George2013-07-20
| | | | | | | | Should fix trac ticket #2797 because of the progress line.
* | Merge commit '0420c810ceb430003f9f2793c5cfa1fe84657f3d'Michael Niedermayer2013-07-05
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '0420c810ceb430003f9f2793c5cfa1fe84657f3d': log: pass the correct parameters to missing_feature_sample Conflicts: libavutil/log.c See: 572e38a513139b21c35acfef13aa7c4e307ab648 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: pass the correct parameters to missing_feature_sampleLuca Barbato2013-07-04
| | | | | | | | CC:libav-stable@libav.org
* | avutil/log: Fix context pointer used for get_category()Michael Niedermayer2013-04-30
| | | | | | | | | | | | | | Fixes calling a random pointer Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: dont count&print repeats for empty stringsMichael Niedermayer2013-04-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: leave prefix printing state on empty input.Michael Niedermayer2013-04-26
| | | | | | | | | | | | Fixes printing the prefix after an empty string was printed Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log: Remove redundant va_list creation from missing_feature_sample()James Almer2013-04-13
| | | | | | | | | | | | | | avpriv_request_sample() and avpriv_report_missing_feature() were printing bogus values for the extra arguments. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>