summaryrefslogtreecommitdiff
path: root/libavutil/log.c
Commit message (Collapse)AuthorAge
* 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>
* | Merge commit 'f099d3d1d5466bd63f4ab36270d169ff9ea613b8'Michael Niedermayer2013-03-14
|\| | | | | | | | | | | | | | | * commit 'f099d3d1d5466bd63f4ab36270d169ff9ea613b8': Add av_log_{ask_for_sample|missing_feature} replacements to libavutil ismindex: Check the return value of allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add av_log_{ask_for_sample|missing_feature} replacements to libavutilDiego Biurrun2013-03-13
| | | | | | | | | | This allows reporting missing features and requesting samples from all libraries in a standard way; with a simplified API.
* | Merge commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967'Michael Niedermayer2012-12-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967': Remove pointless #undefs of previously forbidden functions. fate: Add dependencies for bmp, cdxl, dfa, mp3 Conflicts: doc/examples/muxing.c libavfilter/filtfmts.c libavutil/des.c libavutil/eval.c libavutil/log.c libavutil/parseutils.c tests/fate/mp3.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-04
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-12-01
|\| | | | | | | | | | | | | | | | | | | | | | | * qatar/master: configure: Use headers in the check for _beginthreadex for w32threads avutil: Use a configure check to enable windows console functions avutil: Include io.h with a separate condition from windows console functions Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: Use a configure check to enable windows console functionsMartin Storsjö2012-11-30
| | | | | | | | | | | | Not all versions or API subsets of windows have these functions. Signed-off-by: Martin Storsjö <martin@martin.st>
| * avutil: Include io.h with a separate condition from windows console functionsMartin Storsjö2012-11-30
| | | | | | | | | | | | | | | | Not all versions of windows have the console color functions, while io.h might be needed for isatty (which can be found in unistd.h or io.h). Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Fix even more missing includes after the common.h removal build: Factor out rangecoder dependencies to CONFIG_RANGECODER build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE x86: avcodec: Consistently name all init files Add more missing includes after removing the implicit common.h Add some more missing includes after removing the implicit common.h Don't include common.h from avutil.h rtmp: Automatically compute the hash for SWFVerification Conflicts: configure doc/APIchanges doc/examples/decoding_encoding.c libavcodec/Makefile libavcodec/assdec.c libavcodec/audio_frame_queue.c libavcodec/avpacket.c libavcodec/dv_profile.c libavcodec/dwt.c libavcodec/libtheoraenc.c libavcodec/rawdec.c libavcodec/rv40dsp.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/v210dec.h libavcodec/vc1dsp.c libavcodec/x86/Makefile libavfilter/asrc_anullsrc.c libavfilter/avfilter.c libavfilter/buffer.c libavfilter/formats.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_select.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/version.h libavutil/audioconvert.c libavutil/error.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | log: fix compilation failure on mingw due to reference to undefined set_color256Michael Niedermayer2012-07-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu: 256 color supportPaul B Mahol2012-07-07
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | log: change color for filters from blue to bright greenMichael Niedermayer2012-06-28
| | | | | | | | | | | | | | The blue is difficult to read on several peoples terminals with black background. Idea-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-26
|\| | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: log: Include io.h on windows lavr: x86: merge some branches x86: cpu: whitespace (mostly) cosmetics x86: fft: win64: fix stack alignment for memcpy() call Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Include io.h on windowsRonald S. Bultje2012-06-25
| | | | | | | | | | | | | | This is required for isatty, which exists on MSVC and is found by configure, but is provided by io.h instead of unistd.h. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: log: Only include unistd.h if configure found it ape: create audio stream before reading tags. mov: make a length variable larger. image2: Add "start_number" private option to the demuxer image2: Add "start_number" private option to the muxer avconv: remove a forgotten debugging printf. avconv: use more descriptive names for hardcoded filters. avconv: remove redundant handling of async. doc/filters: fix typo. h264: use asm cabac reader under a generic condition Conflicts: ffmpeg.c libavformat/img2dec.c libavformat/img2enc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>