summaryrefslogtreecommitdiffstats
path: root/cmdutils.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-271-9/+9
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avconv: use read_file() for reading the 2pass statsAnton Khirnov2015-07-191-55/+0
| | | | | Also, drop the now unused cmdutils_read_file(). There is no reason to have two functions doing essentially the same thing.
* lavu: add an API function to return the Libav version stringwm42015-07-021-1/+1
| | | | | | | | This returns something like "v12_dev0-1332-g333a27c". This is much more useful than the individual library versions, of which there are too many, and which are very hard to map back to releases or git commits. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* log: Introduce a more verbose debug levelVittorio Giovara2015-04-191-0/+1
| | | | And deprecate av_dlog macro.
* cmdutils: Add a stream specifier to map usable streamsLuca Barbato2015-03-201-0/+22
| | | | | It drops everything that cannot be used for re-encoding and/or streamcopy.
* cmdutils: update copyright year to 2015.Johan Andersson2015-01-041-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* check memory errors from av_strdup()Vittorio Giovara2014-12-181-1/+9
|
* cmdutils: check file access functions return valuesVittorio Giovara2014-12-181-5/+23
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703706
* cmdutils: Use the correct guardLuca Barbato2014-10-171-1/+1
| | | | | | | The OptionDef arrays are terminated with a { NULL } element not NULL. CC: libav-stable@libav.org Bug-Id: CID 703769
* cmdutils: Print a more sensible message in show_filters() w/o libavfilterDiego Biurrun2014-09-161-2/+4
| | | | Also avoid an unused variable warning for compilers w/o av_unused support.
* cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-151-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-4/+4
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cmdutils: allow matching by metadata in stream specifiersAnton Khirnov2014-08-131-0/+23
|
* avconv: Match stream idLuca Barbato2014-03-131-0/+6
| | | | Quite useful to select by pid in MPEG-TS.
* cmdutils: update copyright year to 2014.Johan Andersson2014-01-051-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-231-0/+1
|
* avplay: Accept cpuflags optionLuca Barbato2013-10-221-0/+12
| | | | | | Quite useful for debugging. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cmdutils: Only do the windows-specific commandline parsing on _WIN32Diogo Franco2013-08-081-1/+4
| | | | | | | | | | | | | Fixes commandline parsing on Cygwin (on 64 bit, and on very recent 32 bit), where the configure check does find the CommandLineToArgvW function (since it exists in the link libraries and in the headers), but whose GetCommandLineW() only returns the application's path. (This is due to a cygwin internal optimization, see http://cygwin.com/ml/cygwin/2013-07/msg00538.html for details.) Arguments are only given through main's argc/argv, and they're already UTF-8. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: wrap exit explicitlyLuca Barbato2013-07-071-8/+23
| | | | | | | | | | Some C runtime implementations deadlock when calling threading functions on the atexit() handler. Use a simpler wrapper similar to av_log to call the cleanup function before exit. Bug-Id: 523
* lavfi: add a slice threading infrastructureAnton Khirnov2013-05-241-0/+3
| | | | Mostly based on libavcodec's
* pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-151-5/+5
|
* cmdutils: Fix build with lavfi disabledAnton Khirnov2013-04-161-0/+4
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cmdutils: allow -h filter=<name> to print information about a filter.Anton Khirnov2013-04-111-0/+40
|
* avtools: move media_type_string() from avprobe to cmdutils.Anton Khirnov2013-04-111-0/+12
| | | | It will be useful outside of avprobe.
* lavfi: change the filter registering system to match the other librariesAnton Khirnov2013-04-111-3/+3
| | | | Removes an arbitrary hardcoded limit on the number of filters.
* avconv: print an error on applying options of the wrong type.Anton Khirnov2013-03-081-0/+10
| | | | I.e. input options to output files or vice versa.
* avplay: switch to new refcounted frames APIAnton Khirnov2013-03-081-126/+0
| | | | Remove now unused cmdutils get_buffer() implementation.
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-071-1/+1
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: Allow calling filter_codec_opts without a set encoderMartin Storsjö2013-02-281-3/+1
| | | | | | | In this case, no encoder specific options are filtered, only options specific to that codec type in general. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: only use libavresample when it is enabledJustin Ruggles2013-02-251-0/+4
| | | | avprobe and avserver use cmdutils and do not strictly require libavresample.
* avconv: pass libavresample options to AVFilterGraphJustin Ruggles2013-02-231-2/+10
|
* get_buffer(): do not initialize the data.Anton Khirnov2013-02-151-5/+0
| | | | | There may be more decoders that rely on this. Those should be found and fixed.
* qtrle: fix the topmost line for 1bitKostya Shishkov2013-02-061-1/+0
| | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net> CC:libav-stable@libav.org
* fraps: fix off-by one bug for version 1.Anton Khirnov2013-02-061-1/+1
| | | | CC:libav-stable@libav.org
* aasc: fix output for msrle compression.Anton Khirnov2013-02-061-1/+1
| | | | | | The bottom line was invalid before. CC:libav-stable@libav.org
* cmdutils: remove ansi from the list of broken codecs.Anton Khirnov2013-02-061-1/+1
| | | | | It's not relying on get_buffer() initializing the frame since 99e36ddd3ee57c38e6ca9e240ba518848487f849.
* cdgraphics: do not rely on get_buffer() initializing the frame.Anton Khirnov2013-02-061-1/+1
| | | | | Setting it to zero (instead of 128, as the default get_buffer() does) also produces more correctly-looking output.
* cmdutils: update copyright year to 2013Johan Andersson2013-01-031-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: pass number of groups to split_commandline().Anton Khirnov2012-12-191-13/+11
| | | | | This makes the code simpler and avoids mixing designated and non-designated initializers in a potentially unsafe way in avconv.
* cmdutils: don't log an error in opt_default().Anton Khirnov2012-12-181-1/+0
| | | | It results in spurious errors when using the new preparser.
* cmdutils: add a commandline pre-parser.Anton Khirnov2012-12-181-0/+241
| | | | | | | | | | | | | It splits the commandline into a more convenient internal representation for further parsing. This will allow e.g. - processing global options first independently of their location on the commandline, eliminating ugly hacks for processing e.g. cpuflags first - better options validation and error reporting. It is now possible for the parser to know that it's applying an input option to an output file or vice versa and act accordingly.
* cmdutils: split parse_option().Anton Khirnov2012-12-181-30/+40
| | | | | | Separate the code that searches for the option to use and the code that actually writes it. The writing code will be reused by the new options parser.
* lavc: set frame properties in ff_get_buffer().Anton Khirnov2012-12-041-5/+0
| | | | | There is no point in duplicating this code in every get_buffer() implementation.
* cmdutils: Use a configure check for enabling CommandLineToArgvWMartin Storsjö2012-11-291-2/+2
| | | | | | | | | This simplifies the condition to avoid hardcoding the systems where the function exists. This also simplifies support for newer Windows API subsets where this function doesn't exist, such as Windows Phone 8 and the "metro" API subset of Windows 8. Signed-off-by: Martin Storsjö <martin@martin.st>
* pixdesc: add av_pix_fmt_get_chroma_sub_sampleLuca Barbato2012-11-131-1/+3
| | | | Deprecate avcodec_get_chroma_sub_sample.
* cmdutils: Conditionally compile libswscale-related bitsDiego Biurrun2012-10-291-1/+6
| | | | This fixes compilation with libswscale disabled.
* Include sys/time.h before sys/resource.hMans Rullgard2012-10-231-0/+1
| | | | | | | Some systems require sys/time.h being explicitly included before sys/resource.h. The configure check already does this. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tools: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-121-5/+11
|
* cmdutils_read_file: increment *size after writing the trailing \0Janne Grunau2012-10-091-1/+1
| | | | Fixes CID732166.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-4/+4
|
OpenPOWER on IntegriCloud