aboutsummaryrefslogtreecommitdiff
path: root/cmdutils.c
AgeCommit message (Collapse)Author
2011-02-16Deprecate parse_date() in favor of av_parse_time().Stefano Sabatini
The new av_parse_time() is created in libavutil/parseutils.h, all the internal functions used by parse_date are moved to libavutil/parseutils.c and made static. Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-15Merge libavcore into libavutilReinhard Tartler
It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2011-02-05cmdutils: fix codec-specific options from presetJames Zern
Using a preset file caused the address of a stack variable to be stored in opt_names/values. This change causes the strings to be dup'd then freed in uninit_opts. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-02-05cmdutils: fix opt_values leakJames Zern
Add free to uninit_opts and relocate opt_names to same Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-01-24Make this_year static to cmdutils.cDiego Elio Pettenò
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-20libavcodec minor version is > 99 so fix the formatingGeorgi Chorbadzhiyski
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>
2011-01-18Use INFINITY and NAN macros instead of 1/0 and 0/0Mans Rullgard
2011-01-04Disable initialization of the swscale sws_opts context inStefano Sabatini
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
2011-01-03ReindentMartin Storsjö
Originally committed as revision 26205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-02Use AVOption for muxers in ffmpeg.Anssi Hannula
Patch by Anssi Hannula, anssi d hannula d iki d fi Originally committed as revision 26199 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-01Update current year to 2011. Happy New Year!Justin Ruggles
Originally committed as revision 26184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-22Add missing check on the existence of avcodec_opts[AVMEDIA_TYPE_X],Stefano Sabatini
fix crash in ffprobe. Originally committed as revision 25799 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-04Implement get_preset_file() in cmdutils.h and use it to factorize codeStefano Sabatini
from ffmpeg.c and ffserver.c. Originally committed as revision 25679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-18Implement a common get_filtered_video_frame(), shared between ffplay.cStefano Sabatini
and ffmpeg.c. Originally committed as revision 25520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-12Factorize definition of the output_filter defined in both ffplay.c andStefano Sabatini
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
2010-10-02Add init and uninit functions to cmdutils, reduces code duplicationReimar Döffinger
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
2010-09-29User application side of Codec specific parameters.Michael Niedermayer
Originally committed as revision 25266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-28All else being equal, prefer PTS over DTS in timestamp correctionAlexander Strange
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
2010-09-28Extract timestamp correction code from ffplay.c to cmdutils.cAlexander Strange
Originally committed as revision 25241 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25Add more missing checks in opt_default(), prevent a crash ifStefano Sabatini
avcodec_opts[0] or avformat_opts is not set. Originally committed as revision 25186 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-24Add missing existence checks in opt_default().Stefano Sabatini
Originally committed as revision 25179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-20Move log_callback_help to cmdutils.[hc], for allowing sharing.Stefano Sabatini
Originally committed as revision 25149 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-29Extend show_protocols() to make it print information about input,Stefano Sabatini
output, seek support. Originally committed as revision 24581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-22Factorize indent definition in PRINT_LIB_INFO().Stefano Sabatini
Originally committed as revision 24435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-22Merge maybe_print_config() and PRINT_LIB_CONFIG() in PRINT_LIB_INFO().Stefano Sabatini
Originally committed as revision 24434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-22Rename:Stefano Sabatini
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
2010-07-22Reindent.Stefano Sabatini
Originally committed as revision 24432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-22Increase flexibility of PRINT_LIB_VERSION(), make it accept a flagsStefano Sabatini
parameter. Allow a pending factorization. Originally committed as revision 24431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-21Add libavcore.Stefano Sabatini
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
2010-06-09Make all the numeric options accept in input an expression which isStefano Sabatini
evaluated through av_strtod(). Fix roundup issue #551. Originally committed as revision 23556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-22Open 2-pass logfile in binary mode for both reading and writing.Ramiro Polla
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
2010-05-09Fix build with swscale disabledMåns Rullgård
Originally committed as revision 23062 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-05Reindent after the last commit.Stefano Sabatini
Originally committed as revision 23034 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-05Simplify print_error(), directly use av_strerror()/strerror() forStefano Sabatini
printing the error code associated to FF_NETERROR(EPROTONOSUPPORT). Originally committed as revision 23033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-05Make print_error() use strerror() in case av_strerror() fails.Stefano Sabatini
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
2010-04-16AVERROR(FF_NETERROR(x)) -> FF_NETERROR(x)Ramiro Polla
FF_NETERROR is implicitly an AVERROR. Originally committed as revision 22888 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-01Implement cmdutils.c:read_file(), and use it in ffmpeg.c for readingStefano Sabatini
the second pass encoding log file. Originally committed as revision 22769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-30Issue a more general message when the function which sets an optionStefano Sabatini
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
2010-03-30Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini
is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-26Use av_strerror() in print_error().Stefano Sabatini
Originally committed as revision 22696 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-17Remove printing of frame sizes and frame rate abbreviations fromStefano Sabatini
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
2010-03-07Remove hacks not required since HAVE_AV_CONFIG_H was unset for the appsMåns Rullgård
Originally committed as revision 22295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-06Make opt_default() look for options in sws_opts only if sws_opts isStefano Sabatini
defined, fix crash. Originally committed as revision 22232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-22Make opt_default() print an error message and exit if the optionStefano Sabatini
supplied is not recognized. Originally committed as revision 21960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-18FFmpeg is a collective effort so allowing a single name in a banner isStefano Sabatini
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
2010-02-10Extend show_pix_fmts(), make it show input/output support forStefano Sabatini
conversion and other information exposed by the pixdesc API. Originally committed as revision 21751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-09Check for setrlimit()Måns Rullgård
Originally committed as revision 21733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-07Make parse_options() explicitely handle the case where an opt_func2Stefano Sabatini
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
2010-01-27Declare variable "version" in the PRINT_LIB_VERSION() macro if block,Stefano Sabatini
slightly simpler and more robust. Originally committed as revision 21492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-27Prettify PRINT_LIB_VERSION macroMåns Rullgård
Originally committed as revision 21477 to svn://svn.ffmpeg.org/ffmpeg/trunk