summaryrefslogtreecommitdiff
path: root/cmdutils.c
Commit message (Collapse)AuthorAge
* Use INFINITY and NAN macros instead of 1/0 and 0/0Mans Rullgard2011-01-18
|
* Disable initialization of the swscale sws_opts context inStefano Sabatini2011-01-04
| | | | | | | | | 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-03
| | | | Originally committed as revision 26205 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AVOption for muxers in ffmpeg.Anssi Hannula2011-01-02
| | | | | | 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-01
| | | | 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-22
| | | | | | 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-04
| | | | | | 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-18
| | | | | | 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-12
| | | | | | | 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-02
| | | | | | | 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-29
| | | | 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-28
| | | | | | | | | | | | | | 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-28
| | | | 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-25
| | | | | | 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-24
| | | | 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-20
| | | | 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-29
| | | | | | 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-22
| | | | 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-22
| | | | Originally committed as revision 24434 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename:Stefano Sabatini2010-07-22
| | | | | | | 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-22
| | | | 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-22
| | | | | | parameter. Allow a pending factorization. Originally committed as revision 24431 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add libavcore.Stefano Sabatini2010-07-21
| | | | | | | | | | | 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-09
| | | | | | | | 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-22
| | | | | | | | | | 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-09
| | | | Originally committed as revision 23062 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after the last commit.Stefano Sabatini2010-05-05
| | | | Originally committed as revision 23034 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify print_error(), directly use av_strerror()/strerror() forStefano Sabatini2010-05-05
| | | | | | 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-05
| | | | | | | | | 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-16
| | | | | | 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-01
| | | | | | 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-30
| | | | | | | | | 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-30
| | | | | | 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-26
| | | | Originally committed as revision 22696 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove printing of frame sizes and frame rate abbreviations fromStefano Sabatini2010-03-17
| | | | | | | | 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-07
| | | | 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-06
| | | | | | 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-22
| | | | | | 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-18
| | | | | | | | | | | | | 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-10
| | | | | | 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-09
| | | | 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-07
| | | | | | | 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-27
| | | | | | 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-27
| | | | 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-27
| | | | 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-25
| | | | Originally committed as revision 21448 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add -timelimit optionMåns Rullgård2010-01-20
| | | | | | | | | | | | | 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-01
| | | | Originally committed as revision 20995 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark conditionally used variable as av_unused, fixes the warning:Diego Biurrun2009-12-28
| | | | | | cmdutils.c:576: warning: unused variable ‘filter’ Originally committed as revision 20943 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement a -pix_fmts option for listing all the supported pixelStefano Sabatini2009-12-21
| | | | | | formats. Originally committed as revision 20909 to svn://svn.ffmpeg.org/ffmpeg/trunk