summaryrefslogtreecommitdiff
path: root/libavutil/log.c
Commit message (Collapse)AuthorAge
...
| * 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>
| * log: Only include unistd.h if configure found itMartin Storsjö2012-06-24
| | | | | | | | | | | | | | MSVC has isatty (in io.h), but not unistd.h. (isatty isn't called at all for windows, since there's a special case block for that.) Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: libspeexenc: add supported sample rates and channel layouts. Replace usleep() calls with av_usleep() lavu: add av_usleep() function utvideo: mark interlaced frames as such utvideo: Fix interlaced prediction for RGB utvideo. cosmetics: do not use full path for local headers lavu/file: include unistd.h only when available configure: check for unistd.h log: include unistd.h only when needed lavf: include libavutil/time.h instead of redeclaring av_gettime() Conflicts: configure doc/APIchanges ffmpeg.c ffplay.c libavcodec/utvideo.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: include unistd.h only when neededMans Rullgard2012-06-21
| | | | | | | | | | | | | | | | | | The only symbol this file uses from unistd.h is isatty(). By including the header only when this function is used, the file can be built on systems without unistd.h (which presumably also lack isatty). Signed-off-by: Mans Rullgard <mans@mansr.com>
* | extend log line buffer sizesWolfram Gloger2012-06-22
| | | | | | | | | | | | | | | | | | The string passed to av_vlog() from libx264's X264_log overflows the 512 byte part_size, truncating x264 parameter output. Double this size and put it in a #define so it only needs to be changed in one place. Signed-off-by: Wolfram Gloger <video06@malloc.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log: flip highlight bit for codec & muxer layerMichael Niedermayer2012-06-20
| | | | | | | | | | | | This way the encoder/muxer side is bold Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: add get_category() for the case where one AVClass can have more than ↵Michael Niedermayer2012-06-19
| | | | | | | | | | | | 1 category Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log: swap colors for muxer and codec layerMichael Niedermayer2012-06-19
| | | | | | | | | | | | | | This way the filters which are semantically closer to the codec layer have a (subjectively to me) more similar color. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log: color prefixes according to their source.Michael Niedermayer2012-06-03
| | | | | | | | | | | | | | The use of cyan is droped from the levels to avoid confusion magenta/cyan/blue is used for muxer/codec/filter layer Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log: cleanup color arraysMichael Niedermayer2012-06-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avprobe: restore pseudo-INI old style format for compatibility. avprobe: fix formatting. log: make colored output more colorful. rtsp: Check for dynamic payload handlers if no static payload mapping was found Conflicts: Changelog doc/ffprobe.texi ffprobe.c libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: make colored output more colorful.Anton Khirnov2012-05-26
| | | | | | | | Green for verbose, cyan for debug.
* | avutil/log: allow av_log_set_callback (NULL)Michael Niedermayer2012-05-10
| | | | | | | | | | Idea-by: Don Moir <donmoir@comcast.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log: use a different color for debug (green).Clément Bœsch2012-01-09
| |
* | lavu: introduce av_log_format_line.Nicolas George2011-12-08
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: adpcmenc: cosmetics: pretty-printing ac3dec: cosmetics: pretty-printing yuv4mpeg: cosmetics: pretty-printing shorten: remove dead initialization roqvideodec: set AVFrame reference before reget_buffer. bmp: fix some 1bit samples. latmdec: add fate test for audio config change oma: PCM support oma: better format detection with small probe buffer oma: clearify ambiguous if condition wavpack: Properly clip samples during lossy decode Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. Cleaned pixdesc.c file in libavutil zmbv.c: coding style clean-up. xan.c: coding style clean-up. mpegvideo.c: code cleanup - first 500 lines. Conflicts: Changelog libavcodec/adpcmenc.c libavcodec/bmp.c libavcodec/zmbv.c libavutil/log.c libavutil/pixdesc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c.Yordan Makariev2011-12-03
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-03
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (44 commits) replacement Indeo 3 decoder gsm demuxer: do not allocate packet twice. flvenc: use first packet delay as global delay. ac3enc: doxygen update. imc: return error codes instead of 0 for error conditions. imc: return meaningful error codes instead of -1 imc: do not set channel layout for stereo imc: validate channel count imc: check for ff_fft_init() failure imc: check output buffer size before decoding imc: use DSPContext.bswap16_buf() to byte-swap packet data rtsp: add allowed_media_types option libgsm: add flush function to reset the decoder state when seeking libgsm: simplify decoding by using a loop gsm: log error message when packet is too small libgsmdec: do not needlessly set *data_size to 0 gsmdec: do not needlessly set *data_size to 0 gsmdec: add flush function to reset the decoder state when seeking libgsmdec: check output buffer size before decoding gsmdec: log error message when output buffer is too small. ... Conflicts: Changelog ffplay.c libavcodec/indeo3.c libavcodec/mjpeg_parser.c libavcodec/vp3.c libavformat/cutils.c libavformat/id3v2.c libavutil/parseutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace some forgotten FFmpeg references by Libav.Diego Biurrun2011-11-02
| |
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-05-09
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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'. regtest: remove redundant flags in jpg test regtest: use run_ffmpeg in do_image_formats regtest: simplify encoding functions ffmpeg.c: check for interlaced flag in the correct place. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Fix an oob array read.Alex Converse2011-05-08
| |
| * Replace strncpy() with av_strlcpy().Alex Converse2011-05-03
| |
| * Fix races in default av_log handlerReinhard Tartler2011-04-29
| | | | | | | | | | | | Prevent competing threads from overwriting (shared) buffers. Original patch by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-21
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. oggdec: use av_freep() instead of av_free() avio: Fix sanity checks in ffurl_read* libavformat: Free AVFormatContext->streams libavformat: Make protocols pass URLContext as log context where available asf: remove commented out code in asf_read_seek not pulled: libpostproc: Remove crufty code disabled by the big bump. Reflect 0.7_beta1 release in the Changelog not pulled: sws: remove disabled cruft. lavu: remove disabled ff_random_get_seed cruft. lavu: remove disabled sha1 cruft. Conflicts: Changelog libavutil/sha1.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove a version check in av_log made unnecessary by the big bump.Diego Biurrun2011-04-20
| |
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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() avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols lavu: remove misc disabled cruft lavu: remove FF_API_OLD_IMAGE_NAMES cruft NOT PULLED lavu: remove FF_API_OLD_EVAL_NAMES cruft lavc: remove misc disabled cruft. lavc: remove the FF_API_INOFFICIAL cruft. lavc: remove the FF_API_SET_STRING_OLD cruft. lavc: remove the FF_API_USE_LPC cruft. lavc: remove the FF_API_SUBTITLE_OLD cruft. lavc: remove the FF_API_VIDEO_OLD cruft. lavc: remove the FF_API_AUDIO_OLD cruft. lavc: remove the FF_API_OPT_SHOW cruft. lavc: remove the FF_API_MM_FLAGS cruft. lavf: remove misc disabled cruft. lavf: remove FF_API_INDEX_BUILT cruft lavf: remove FF_API_URL_CLASS cruft. lavf: remove FF_API_SYMVER cruft ... Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: remove misc disabled cruftAnton Khirnov2011-04-19
| |
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* | Fix apparently exploitable race condition.Michael Niedermayer2011-03-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | log:Sanitize string of most control chars before printing.Michael Niedermayer2011-03-25
|/ | | | | | This may be security relevant depending upon the used terminal. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Recognize FFMPEG_FORCE_NOCOLOR environment variable on Win32Daniel Verkamp2011-01-01
| | | | | | Fixes issue 2461 Originally committed as revision 26186 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Introduce FFMPEG_FORCE_NOCOLOR, with the same meaning and use ofStefano Sabatini2010-12-06
| | | | | | NO_COLOR (but properly prefixed for avoiding namespace conflicts). Originally committed as revision 25899 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow to force colored output.Etienne Buira2010-12-05
| | | | | | Patch by Etienne Buira, etienne d buira d lists a free d fr Originally committed as revision 25888 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2010-09-24
| | | | Originally committed as revision 25178 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetic (rename detect_repeats to is_atty which matches the truth)Michael Niedermayer2010-09-24
| | | | Originally committed as revision 25177 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 2nd try to fix av_log() repeated detectionMichael Niedermayer2010-09-24
| | | | Originally committed as revision 25174 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Limit av_log repeat detection to terminals so as to avoid filling files withMichael Niedermayer2010-09-14
| | | | | | lots of mess. Originally committed as revision 25117 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure "Last message repeated" is printed.Michael Niedermayer2010-07-28
| | | | Originally committed as revision 24573 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print a space after the AVClass prefix.Jai Menon2010-06-25
| | | | | | This improves readability a bit. Originally committed as revision 23767 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compilation on windows CEMartin Storsjö2010-06-14
| | | | Originally committed as revision 23600 to svn://svn.ffmpeg.org/ffmpeg/trunk
* log.c: Use parameter passed to macro instead of the equivalent local variableRamiro Polla2010-06-09
| | | | | | in the only function that uses the macro. Originally committed as revision 23555 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add win32 console color output.Ramiro Polla2010-06-09
| | | | | | Based on patches by James Darnley <james dot darnley at gmail dot com>. Originally committed as revision 23554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ansi color array to outside of av_log_default_callback(). Do not passRamiro Polla2010-06-09
| | | | | | | 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://svn.ffmpeg.org/ffmpeg/trunk
* Rename use_ansi_color to use_color so it is not ANSI-specific.Ramiro Polla2010-06-09
| | | | Originally committed as revision 23552 to svn://svn.ffmpeg.org/ffmpeg/trunk