summaryrefslogtreecommitdiffstats
path: root/cmdutils.c
Commit message (Collapse)AuthorAgeFilesLines
* cmdline: fix -- to escape files starting with -Michael Niedermayer2013-01-191-1/+6
| | | | | | Fixes Ticket2127 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cmdutils: we have 2013Michael Niedermayer2013-01-011-1/+1
| | | | | Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'c661cb6672af5ebcb900ec8766b24761bd2ab011'Michael Niedermayer2012-12-201-13/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c661cb6672af5ebcb900ec8766b24761bd2ab011': cmdutils: pass number of groups to split_commandline(). mov: handle h263 and flv1 for codec_tag 'H','2','6','3' h264: fix sps parsing for SVC and CAVLC 4:4:4 Intra profiles Conflicts: libavcodec/h264_ps.c libavformat/isom.c libavformat/mov.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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: implement debug/fdebug log level update differently.Michael Niedermayer2012-12-201-6/+3
| | | | | | | | | | | | | | The old implementation is no longer possibly due to limitations of the new command line parser. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '77bd1bc73a1946b0f0ce09a7cbb242a65e138d06'Michael Niedermayer2012-12-201-0/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit '77bd1bc73a1946b0f0ce09a7cbb242a65e138d06': avconv: use new options parser. Conflicts: ffmpeg.c ffmpeg.h ffmpeg_opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '0ec1642b60a5b1a4d913e2b9e3899173dff77e7a'Michael Niedermayer2012-12-191-1/+0
|\ \ | |/ | | | | | | | | | | * commit '0ec1642b60a5b1a4d913e2b9e3899173dff77e7a': cmdutils: don't log an error in opt_default(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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.
* | Merge commit '8c9af5b2051b9927f845c7afdfeb30b82670ee77'Michael Niedermayer2012-12-191-0/+241
|\ \ | |/ | | | | | | | | | | * commit '8c9af5b2051b9927f845c7afdfeb30b82670ee77': cmdutils: add a commandline pre-parser. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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.
* | Merge commit 'a01c02bcff755a7891f777706b27452203aac71e'Michael Niedermayer2012-12-191-30/+40
|\ \ | |/ | | | | | | | | | | * commit 'a01c02bcff755a7891f777706b27452203aac71e': cmdutils: split parse_option(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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.
* | lavu: make sure av_pix_fmt_desc_next returns a valid pix fmt.Clément Bœsch2012-12-161-2/+0
| | | | | | | | | | | | | | | | | | This is required because there are some "holes" in the list for compatibility with the fork. The commit also removes the now unecessary check from cmdutils. Found-by: wm4
* | Merge commit 'ff953fecffd3b9a616a046723fb9d4690be032a6'Michael Niedermayer2012-12-051-5/+0
|\ \ | |/ | | | | | | | | | | | | | | | | * commit 'ff953fecffd3b9a616a046723fb9d4690be032a6': lavc: set frame properties in ff_get_buffer(). Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-11-301-2/+2
|\ \ | |/ | | | | | | | | | | | | * qatar/master: avutil: Include io.h with a separate condition from MapViewOfFile cmdutils: Use a configure check for enabling CommandLineToArgvW Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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.
* | replace av_log(0, by av_log(NULL,Michael Niedermayer2012-11-231-1/+1
| | | | | | | | | | | | The first parameter is a pointer and NULL is more correct Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: free the report file name.Nicolas George2012-11-171-2/+5
| | | | | | | | Fix coverity issue 743443, which was a harmless leak.
* | lavu/opt: fix av_opt_get_key_value() API.Nicolas George2012-11-161-0/+2
| | | | | | | | | | | | | | Do not skip the end delimiter. Reserve positive return values. This is an API break, but the function was introduced less than two weeks ago.
* | PRINT_CODEC_SUPPORTED: fix used variableMichael Niedermayer2012-11-091-1/+1
| | | | | | | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: allow to set the report file name.Nicolas George2012-11-041-11/+75
| | | | | | | | | | | | | | The file name can be set by setting the FFREPORT environment variable to "file=something". Fix trac ticket #1823.
* | Revert "cmdutils: allow specifying the file for -report"Michael Niedermayer2012-11-041-11/+0
| | | | | | | | | | | | This reverts commit 841bf0ef240f0d862b1f07076e079829456fb117. This does not fully work as the file is used before the filename is parsed so not all information is written in the specified file.
* | cmdutils: allow specifying the file for -reportMichael Niedermayer2012-11-011-0/+11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '381dc1a5ec0925b281c573457c413ae643567086'Michael Niedermayer2012-10-301-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '381dc1a5ec0925b281c573457c413ae643567086': fate: ac3: Place E-AC-3 tests and AC-3 tests in different groups fate: Add shorthands for acodec PCM and ADPCM tests avconv: Drop unused function argument from do_video_stats() cmdutils: Conditionally compile libswscale-related bits aacenc: Drop some unused function arguments rtsp: Avoid a cast when calling strtol nut: support textual data nutenc: verbosely report unsupported negative pts Conflicts: cmdutils.c ffmpeg.c libavformat/nut.c libavformat/nutenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cmdutils: Conditionally compile libswscale-related bitsDiego Biurrun2012-10-291-1/+6
| | | | | | | | This fixes compilation with libswscale disabled.
* | cmdutils: avoid using cpp directives within printf macro argumentsLeon van Stuivenberg2012-10-291-7/+10
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> It appears such construct has undefined behavior
* | cmdutils: fix unclosed file on errorMichael Niedermayer2012-10-251-0/+1
| | | | | | | | | | Fixes CID739865 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: remove writes in never read variableMichael Niedermayer2012-10-251-4/+4
| | | | | | | | | | Fixes CID739868 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '80521c1997a23e148edf89e11b939ab8646297ca'Michael Niedermayer2012-10-241-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '80521c1997a23e148edf89e11b939ab8646297ca': build: allow targets to specify extra objects to link with executables swscale: avoid pointless use of compound literals libm: add fallbacks for various single-precision functions network: use getservbyport() only if available network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN Include sys/time.h before sys/resource.h Conflicts: Makefile configure libavutil/libm.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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>
* | cmdutils: apply option to codec and format contexts if possible.Michael Niedermayer2012-10-221-6/+15
| | | | | | | | | | | | | | | | This is needed for setting both contexts -err_detect at once. Reviewed-by: Clément Bœsch <ubitux@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: add missing check for ftell() returnMichael Niedermayer2012-10-181-0/+4
| | | | | | | | | | Fixed CID703706 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cmdutils: remove unneeded null checkMichael Niedermayer2012-10-171-1/+1
| | | | | | | | | | Fixes CID703769 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'b7f1010c8fce09096057528f7cd29589ea1ae7df'Michael Niedermayer2012-10-121-5/+11
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b7f1010c8fce09096057528f7cd29589ea1ae7df': tools: do not use av_pix_fmt_descriptors directly. pixdesc: add functions for accessing pixel format descriptors. build: add support for Tru64 (OSF/1) md5: Allocate a normal private context for the opaque md5 context pointer Conflicts: cmdutils.c doc/APIchanges ffprobe.c libavformat/md5enc.c libavutil/version.h tools/graph2dot.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * tools: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-121-5/+11
| |
* | Merge commit 'b94e4acb4874843e914fd3cb8e089aff0756bb4a'Michael Niedermayer2012-10-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b94e4acb4874843e914fd3cb8e089aff0756bb4a': cmdutils_read_file: increment *size after writing the trailing \0 af_resample: unref out_buf when avresample_convert returns 0 af_amix: prevent memory leak on error path vc1dec: prevent memory leak in error path vc1dec: prevent memory leak on av_realloc error af_channelmap: free old extended_data on reallocation avconv: simplify memory allocation in copy_chapters matroskaenc: check cue point validity before reallocation swfenc: error out for more than 1 audio or video stream build: link test programs only against static libs Conflicts: ffmpeg_opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cmdutils_read_file: increment *size after writing the trailing \0Janne Grunau2012-10-091-1/+1
| | | | | | | | Fixes CID732166.
* | Merge commit '716d413c13981da15323c7a3821860536eefdbbb'Michael Niedermayer2012-10-081-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '716d413c13981da15323c7a3821860536eefdbbb': Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat Conflicts: doc/examples/muxing.c ffmpeg.h ffmpeg_filter.c ffmpeg_opt.c ffplay.c ffprobe.c libavcodec/8bps.c libavcodec/aasc.c libavcodec/aura.c libavcodec/avcodec.h libavcodec/avs.c libavcodec/bfi.c libavcodec/bmp.c libavcodec/bmpenc.c libavcodec/c93.c libavcodec/cscd.c libavcodec/cyuv.c libavcodec/dpx.c libavcodec/dpxenc.c libavcodec/eatgv.c libavcodec/escape124.c libavcodec/ffv1.c libavcodec/flashsv.c libavcodec/fraps.c libavcodec/h264.c libavcodec/huffyuv.c libavcodec/iff.c libavcodec/imgconvert.c libavcodec/indeo3.c libavcodec/kmvc.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libx264.c libavcodec/ljpegenc.c libavcodec/mjpegdec.c libavcodec/mjpegenc.c libavcodec/motionpixels.c libavcodec/mpeg12.c libavcodec/mpeg12enc.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo_enc.c libavcodec/pamenc.c libavcodec/pcxenc.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/pnm.c libavcodec/pnmdec.c libavcodec/pnmenc.c libavcodec/ptx.c libavcodec/qdrw.c libavcodec/qpeg.c libavcodec/qtrleenc.c libavcodec/raw.c libavcodec/rawdec.c libavcodec/rl2.c libavcodec/sgidec.c libavcodec/sgienc.c libavcodec/snowdec.c libavcodec/snowenc.c libavcodec/sunrast.c libavcodec/targa.c libavcodec/targaenc.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/tmv.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/vb.c libavcodec/vp3.c libavcodec/wnv1.c libavcodec/xl.c libavcodec/xwddec.c libavcodec/xwdenc.c libavcodec/yop.c libavdevice/v4l2.c libavdevice/x11grab.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersrc.c libavfilter/drawutils.c libavfilter/formats.c libavfilter/src_movie.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_format.c libavfilter/vf_hflip.c libavfilter/vf_lut.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_yadif.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/movenc.c libavformat/mxf.h libavformat/utils.c libavformat/yuv4mpeg.c libavutil/imgutils.c libavutil/pixdesc.c libswscale/input.c libswscale/output.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c libswscale/x86/swscale_template.c libswscale/x86/yuv2rgb.c libswscale/x86/yuv2rgb_template.c libswscale/yuv2rgb.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-4/+4
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-021-9/+9
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ARM: fix Thumb PIC on Apple nut: add do {} while (0) to GET_V tiffenc: Check av_malloc() results. tiffenc: Simplify pixel format setup using AVPixFmtDescriptor. Use atexit() instead of defining a custom exit_program() interface. msvc: Fix detection of VFW & Avisynth required libs Conflicts: ffmpeg.c ffmpeg_opt.c ffplay.c ffprobe.c ffserver.c libavcodec/tiffenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò2012-10-011-7/+7
| |
| * cmdutils: avoid setting data pointers to invalid values in alloc_buffer()Anton Khirnov2012-09-151-1/+1
| | | | | | | | Fixes bug 352.
* | cmdutils: sort codec lists.Nicolas George2012-09-231-4/+40
| | | | | | | | | | | | | | The lists are sorted first by type (video first) and then alphabetically by name. Fix ticket #1669.
* | Fix segfault with -filters optionBobby Bingham2012-09-181-1/+1
| | | | | | | | | | | | | | | | Filters now use null pointers to indicate having no input/output pads, rather than empty lists of pads. We can't assume pad is non-null anymore. Signed-off-by: Bobby Bingham <uhmmmm@gmail.com>
* | msvc: Add a va_copy compatability macro for msvcDerek Buitenhuis2012-09-151-0/+1
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit 'ec36aa69448f20a78d8c4588265022e0b2272ab5'Michael Niedermayer2012-08-311-30/+33
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ec36aa69448f20a78d8c4588265022e0b2272ab5': x86: Fix linking with some or all of yasm, mmx, optimizations disabled configure: Add more fine-grained SSE CPU capabilities flags avfilter: x86: Use more precise compile template names x86: cosmetics: Comment some #endifs for better readability g723_1: add comfort noise generation utvideoenc: Switch to dsputils' median prediction utvideoenc: Avoid writing into the input picture avtools: remove the distinction between func_arg and func2_arg. avconv: make the -passlogfile option per-stream. avconv: make the -pass option per-stream. cmdutils: make -codecs print lossy/lossless flags. lavc: add lossy/lossless codec properties. Conflicts: Changelog cmdutils.c configure doc/APIchanges ffmpeg.h ffmpeg_opt.c ffprobe.c libavcodec/codec_desc.c libavcodec/g723_1.c libavcodec/utvideoenc.c libavcodec/version.h libavcodec/x86/mpegaudiodec.c libavcodec/x86/rv40dsp_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avtools: remove the distinction between func_arg and func2_arg.Anton Khirnov2012-08-301-18/+17
| | | | | | | | | | | | func2_arg is the same as func_arg, except it has one additional parameter. Change all func_arg callbacks to take that parameter (and ignore it).
| * cmdutils: make -codecs print lossy/lossless flags.Anton Khirnov2012-08-301-7/+11
| |
OpenPOWER on IntegriCloud