summaryrefslogtreecommitdiffstats
path: root/cmdutils.c
Commit message (Collapse)AuthorAgeFilesLines
* Make this_year static to cmdutils.cDiego Elio Pettenò2011-01-241-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* libavcodec minor version is > 99 so fix the formatingGeorgi Chorbadzhiyski2011-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | libavcodec minor version is > 99 so when printing the library versions the output is a little bit broken: libavutil 50. 36. 0 / 50.36. 0 libavcore 0. 16. 1 / 0.16. 1 libavcodec 52.108. 0 / 52.108. 0 libavformat 52. 94. 0 / 52.94. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1. 74. 0 / 1.74. 0 libswscale 0. 12. 0 / 0.12. 0 Change the formating to look like this: libavutil 50. 36. 0 / 50. 36. 0 libavcore 0. 16. 1 / 0. 16. 1 libavcodec 52.108. 0 / 52.108. 0 libavformat 52. 94. 0 / 52. 94. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1. 74. 0 / 1. 74. 0 libswscale 0. 12. 0 / 0. 12. 0 Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use INFINITY and NAN macros instead of 1/0 and 0/0Mans Rullgard2011-01-181-1/+1
|
* Disable initialization of the swscale sws_opts context inStefano Sabatini2011-01-041-0/+4
| | | | | | | | | cmdutils.c:init_opts(), in the case libswscale compilation is not enabled. Fix ffprobe and ffserver compilation with --disable-swscale. Originally committed as revision 26212 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2011-01-031-2/+2
| | | | Originally committed as revision 26205 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AVOption for muxers in ffmpeg.Anssi Hannula2011-01-021-1/+15
| | | | | | Patch by Anssi Hannula, anssi d hannula d iki d fi Originally committed as revision 26199 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update current year to 2011. Happy New Year!Justin Ruggles2011-01-011-1/+1
| | | | Originally committed as revision 26184 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing check on the existence of avcodec_opts[AVMEDIA_TYPE_X],Stefano Sabatini2010-11-221-3/+3
| | | | | | fix crash in ffprobe. Originally committed as revision 25799 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement get_preset_file() in cmdutils.h and use it to factorize codeStefano Sabatini2010-11-041-0/+30
| | | | | | from ffmpeg.c and ffserver.c. Originally committed as revision 25679 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement a common get_filtered_video_frame(), shared between ffplay.cStefano Sabatini2010-10-181-0/+22
| | | | | | and ffmpeg.c. Originally committed as revision 25520 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize definition of the output_filter defined in both ffplay.c andStefano Sabatini2010-10-121-0/+41
| | | | | | | ffmpeg.c. Replace it with a more generic definition which can be shared. Originally committed as revision 25453 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add init and uninit functions to cmdutils, reduces code duplicationReimar Döffinger2010-10-021-0/+19
| | | | | | | between ffmpeg and ffplay and avoids a valgrind error by freeing avformat_opts->key. Originally committed as revision 25309 to svn://svn.ffmpeg.org/ffmpeg/trunk
* User application side of Codec specific parameters.Michael Niedermayer2010-09-291-2/+26
| | | | Originally committed as revision 25266 to svn://svn.ffmpeg.org/ffmpeg/trunk
* All else being equal, prefer PTS over DTS in timestamp correctionAlexander Strange2010-09-281-1/+1
| | | | | | | | | | | | | | Because DTS values aren't passed through decoders, they tend to be inaccurate if decoder delay doesn't match what was expected by the encoder. In particular this improves timestamps for H.264 without num_reorder_frames set and with -strict 1, which causes DTS to be up to 16 frames ahead of the picture. Note that this doesn't really improve any file with very broken PTS/DTS, since PTS isn't much more accurate in these. Originally committed as revision 25242 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extract timestamp correction code from ffplay.c to cmdutils.cAlexander Strange2010-09-281-0/+27
| | | | Originally committed as revision 25241 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add more missing checks in opt_default(), prevent a crash ifStefano Sabatini2010-09-251-1/+1
| | | | | | avcodec_opts[0] or avformat_opts is not set. Originally committed as revision 25186 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing existence checks in opt_default().Stefano Sabatini2010-09-241-2/+2
| | | | Originally committed as revision 25179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move log_callback_help to cmdutils.[hc], for allowing sharing.Stefano Sabatini2010-09-201-0/+5
| | | | Originally committed as revision 25149 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extend show_protocols() to make it print information about input,Stefano Sabatini2010-07-291-2/+11
| | | | | | output, seek support. Originally committed as revision 24581 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize indent definition in PRINT_LIB_INFO().Stefano Sabatini2010-07-221-3/+4
| | | | Originally committed as revision 24435 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge maybe_print_config() and PRINT_LIB_CONFIG() in PRINT_LIB_INFO().Stefano Sabatini2010-07-221-26/+17
| | | | Originally committed as revision 24434 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename:Stefano Sabatini2010-07-221-12/+12
| | | | | | | PRINT_LIB_VERSION() -> PRINT_LIB_INFO() print_all_lib_versions() -> print_all_libs_info() Originally committed as revision 24433 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent.Stefano Sabatini2010-07-221-7/+7
| | | | Originally committed as revision 24432 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Increase flexibility of PRINT_LIB_VERSION(), make it accept a flagsStefano Sabatini2010-07-221-14/+19
| | | | | | parameter. Allow a pending factorization. Originally committed as revision 24431 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add libavcore.Stefano Sabatini2010-07-211-0/+3
| | | | | | | | | | | The new library is meant to contain the core multimedia utilities for FFmpeg, to make them shareable between more libav* libraries. See thread: Subject: [FFmpeg-devel] [RFC] New library for shared non-generic libav* utils Date: Fri, 9 Jul 2010 01:07:40 +0200 Originally committed as revision 24393 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make all the numeric options accept in input an expression which isStefano Sabatini2010-06-091-1/+2
| | | | | | | | evaluated through av_strtod(). Fix roundup issue #551. Originally committed as revision 23556 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Open 2-pass logfile in binary mode for both reading and writing.Ramiro Polla2010-05-221-1/+1
| | | | | | | | | | This fixes a regression on Windows introduced by r22769 in which the data read from the file was not properly zero terminated. The file was read as text, which caused the \r characters to be suppressed. Since the zero termination happens at the end of the buffer, and there was one byte less read per line, this caused the remaining space on the buffer to contain random data. Originally committed as revision 23251 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix build with swscale disabledMåns Rullgård2010-05-091-0/+5
| | | | Originally committed as revision 23062 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after the last commit.Stefano Sabatini2010-05-051-3/+3
| | | | Originally committed as revision 23034 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify print_error(), directly use av_strerror()/strerror() forStefano Sabatini2010-05-051-8/+0
| | | | | | printing the error code associated to FF_NETERROR(EPROTONOSUPPORT). Originally committed as revision 23033 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make print_error() use strerror() in case av_strerror() fails.Stefano Sabatini2010-05-051-2/+4
| | | | | | | | | Should provide a meaningful error message for systems which do not support strerror_r(). Fix roundup issue #1894. Originally committed as revision 23032 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AVERROR(FF_NETERROR(x)) -> FF_NETERROR(x)Ramiro Polla2010-04-161-1/+1
| | | | | | FF_NETERROR is implicitly an AVERROR. Originally committed as revision 22888 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement cmdutils.c:read_file(), and use it in ffmpeg.c for readingStefano Sabatini2010-04-011-0/+24
| | | | | | the second pass encoding log file. Originally committed as revision 22769 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Issue a more general message when the function which sets an optionStefano Sabatini2010-03-301-1/+1
| | | | | | | | | fails. It may fail not only because of an invalid value for the option, but also for other reasons, e.g. memory problems etc. Originally committed as revision 22738 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-8/+8
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_strerror() in print_error().Stefano Sabatini2010-03-261-26/+4
| | | | Originally committed as revision 22696 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove printing of frame sizes and frame rate abbreviations fromStefano Sabatini2010-03-171-3/+0
| | | | | | | | show_protocols(). The list of abbreviations is both outdated and out of context. Originally committed as revision 22589 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove hacks not required since HAVE_AV_CONFIG_H was unset for the appsMåns Rullgård2010-03-071-2/+0
| | | | Originally committed as revision 22295 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make opt_default() look for options in sws_opts only if sws_opts isStefano Sabatini2010-03-061-1/+1
| | | | | | defined, fix crash. Originally committed as revision 22232 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make opt_default() print an error message and exit if the optionStefano Sabatini2010-02-221-2/+4
| | | | | | supplied is not recognized. Originally committed as revision 21960 to svn://svn.ffmpeg.org/ffmpeg/trunk
* FFmpeg is a collective effort so allowing a single name in a banner isStefano Sabatini2010-02-181-1/+1
| | | | | | | | | | | | | not nice/fair towards the community of developers. Also this looks like the best way for resolving the debate about which is the one person name to be put in the banner. See the thread: Subject: [FFmpeg-devel] [PATCH] Replace "Fabrice Bellard" with "the FFmpeg developers" in the banner Date: Thu, 11 Feb 2010 23:59:12 +0100 Originally committed as revision 21885 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extend show_pix_fmts(), make it show input/output support forStefano Sabatini2010-02-101-1/+25
| | | | | | conversion and other information exposed by the pixdesc API. Originally committed as revision 21751 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for setrlimit()Måns Rullgård2010-02-091-1/+1
| | | | Originally committed as revision 21733 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make parse_options() explicitely handle the case where an opt_func2Stefano Sabatini2010-02-071-2/+4
| | | | | | | function returns a negative value, rather than erroneously trigger the code which manages the case of unknown option. Originally committed as revision 21670 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Declare variable "version" in the PRINT_LIB_VERSION() macro if block,Stefano Sabatini2010-01-271-2/+1
| | | | | | slightly simpler and more robust. Originally committed as revision 21492 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prettify PRINT_LIB_VERSION macroMåns Rullgård2010-01-271-6/+9
| | | | Originally committed as revision 21477 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of ifdeffery for printing library versions and configurationsMåns Rullgård2010-01-271-16/+15
| | | | Originally committed as revision 21476 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print config of each lib if different from that of ffmpeg/ffplay/ffserverMåns Rullgård2010-01-251-0/+24
| | | | Originally committed as revision 21448 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add -timelimit optionMåns Rullgård2010-01-201-0/+16
| | | | | | | | | | | | | This option limits the CPU time used by ffmpeg to the number of seconds specified. After this time, the OS sends a SIGXCPU signal, which we handle and attempt to exit cleanly. If the process is stuck, the OS will deliver a SIGKILL one second later, forcibly terminating the process. This functionality is useful in automated setups where a runaway ffmpeg process would otherwise go undetected. Originally committed as revision 21347 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update this_year value.Stefano Sabatini2010-01-011-1/+1
| | | | Originally committed as revision 20995 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud