OSDN Git Service

coroid/libav_saccubus.git
12 years agoWindows MinGW環境ビルドエラー対応(Windows7 Mingw32 gcc4.5.2) master
OWATA orz [Mon, 12 Sep 2011 15:37:58 +0000 (00:37 +0900)]
Windows MinGW環境ビルドエラー対応(Windows7 Mingw32 gcc4.5.2)
(cherry picked from commit 8c1051b3b0d571aa78592de58197aa8fb8f3fc2c)

12 years agoffmpeg.cに対する修正と同じものをavconv.cに適用
yukihane [Mon, 12 Sep 2011 10:51:26 +0000 (19:51 +0900)]
ffmpeg.cに対する修正と同じものをavconv.cに適用
6291d7e41605c0b1e9debfae8a2b1d4cf7b0e0b3 に伴う対応
(cherry picked from commit 4e7c2f1201bdc7b2faf85f8a913f567b912153c0)

12 years agoMerge remote branch 'official/master'
yukihane [Mon, 12 Sep 2011 14:31:51 +0000 (23:31 +0900)]
Merge remote branch 'official/master'

12 years agodoc/avconv: fix typo.
Anton Khirnov [Mon, 12 Sep 2011 08:40:43 +0000 (10:40 +0200)]
doc/avconv: fix typo.

12 years agorv34: check that subsequent slices have the same type as first one.
Kostya Shishkov [Mon, 12 Sep 2011 09:39:53 +0000 (11:39 +0200)]
rv34: check that subsequent slices have the same type as first one.

This prevents some crashes when corrupted bitstream reports e.g. P-type
slice in I-frame. Official RealVideo decoder demands all slices to be
of the same type too.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agosmacker demuxer: handle possible av_realloc() failure.
Kostya Shishkov [Mon, 12 Sep 2011 07:40:42 +0000 (09:40 +0200)]
smacker demuxer: handle possible av_realloc() failure.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agolavfi: add split filter from soc.
Bobby Bingham [Sat, 21 May 2011 14:46:11 +0000 (16:46 +0200)]
lavfi: add split filter from soc.

Some fixes by Stefano.
For detailed authorship see SOC repo

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agolavfi: add showinfo filter
Stefano Sabatini [Sat, 23 Apr 2011 18:55:34 +0000 (20:55 +0200)]
lavfi: add showinfo filter

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agolibxavs: add private options corresponding to deprecated global options
Anton Khirnov [Sun, 11 Sep 2011 06:14:43 +0000 (08:14 +0200)]
libxavs: add private options corresponding to deprecated global options

Code mostly copied from libx264 wrapper.

12 years agoaudioconvert: add explanatory comments to channel_names array
Stefano Sabatini [Sat, 10 Sep 2011 23:07:08 +0000 (01:07 +0200)]
audioconvert: add explanatory comments to channel_names array

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoaudioconvert: K&R whitespace cosmetics
Stefano Sabatini [Sat, 10 Sep 2011 23:06:57 +0000 (01:06 +0200)]
audioconvert: K&R whitespace cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoavconv: use correct index when selecting metadata to write to.
Anton Khirnov [Mon, 5 Sep 2011 12:12:28 +0000 (14:12 +0200)]
avconv: use correct index when selecting metadata to write to.

12 years agoavconv: fix inverted variable
Anton Khirnov [Mon, 5 Sep 2011 12:11:13 +0000 (14:11 +0200)]
avconv: fix inverted variable

12 years agodoc/avconv: document option types (input/output/per-stream/...)
Anton Khirnov [Sat, 3 Sep 2011 13:02:52 +0000 (15:02 +0200)]
doc/avconv: document option types (input/output/per-stream/...)

Also trim some redundant stream specifiers descriptions.

12 years agodoc/avtools-common-opts: write a section about stream specifiers.
Anton Khirnov [Sat, 3 Sep 2011 12:55:39 +0000 (14:55 +0200)]
doc/avtools-common-opts: write a section about stream specifiers.

12 years agodoc/avconv: remove two pointless paragraphs.
Anton Khirnov [Sat, 3 Sep 2011 11:02:20 +0000 (13:02 +0200)]
doc/avconv: remove two pointless paragraphs.

They are misleading and carry no useful information.

12 years agodoc/avconv: document that global options should be specified first.
Anton Khirnov [Sat, 3 Sep 2011 10:53:53 +0000 (12:53 +0200)]
doc/avconv: document that global options should be specified first.

12 years agodoc/avconv: remove entries for nonexistent options
Anton Khirnov [Sat, 3 Sep 2011 05:08:55 +0000 (07:08 +0200)]
doc/avconv: remove entries for nonexistent options

12 years agodoc/avconv: remove documentation for removed 'timestamp' option
Anton Khirnov [Fri, 2 Sep 2011 20:53:54 +0000 (22:53 +0200)]
doc/avconv: remove documentation for removed 'timestamp' option

12 years agodoc: cosmetics, rename fftools-common-opts to avtools-....
Anton Khirnov [Fri, 2 Sep 2011 20:17:38 +0000 (22:17 +0200)]
doc: cosmetics, rename fftools-common-opts to avtools-....

12 years agoavconv: move streamid_map to options context.
Anton Khirnov [Fri, 2 Sep 2011 20:07:30 +0000 (22:07 +0200)]
avconv: move streamid_map to options context.

12 years agoavconv: extend -vf syntax
Anton Khirnov [Fri, 2 Sep 2011 19:11:00 +0000 (21:11 +0200)]
avconv: extend -vf syntax

Add a per-stream -filter option, make -vf an alias for -filter:v. Move
vfilters to the options context.

12 years agoavconv: move top_field_first to options context.
Anton Khirnov [Fri, 2 Sep 2011 16:03:31 +0000 (18:03 +0200)]
avconv: move top_field_first to options context.

12 years agoavconv: move inter/intra matrix to options context.
Anton Khirnov [Fri, 2 Sep 2011 15:57:56 +0000 (17:57 +0200)]
avconv: move inter/intra matrix to options context.

12 years agoavconv: remove -psnr option.
Anton Khirnov [Fri, 2 Sep 2011 15:31:14 +0000 (17:31 +0200)]
avconv: remove -psnr option.

It's redundant -- -flags +psnr does the same thing.

12 years agoavconv: remove me_threshold option.
Anton Khirnov [Fri, 2 Sep 2011 15:06:30 +0000 (17:06 +0200)]
avconv: remove me_threshold option.

It's only shadowing the AVOption with the same name.

12 years agoavconv: move video_rc_override_string to options context.
Anton Khirnov [Fri, 2 Sep 2011 14:06:18 +0000 (16:06 +0200)]
avconv: move video_rc_override_string to options context.

12 years agoavconv: move frame pixel format to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame pixel format to the options context.

Also remove redundant -pix_fmt list syntax, it's inconsistent and  only
makes the code more complicated. -pix_fmts should be enough for
everyone.

12 years agoavconv: move frame aspect ratio to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame aspect ratio to the options context.

12 years agoavconv: move frame size to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame size to the options context.

12 years agoavconv: move frame_rate to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame_rate to the options context.

12 years agoavconv: move force_fps to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move force_fps to the options context.

12 years agoavconv: move forced_key_frames to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move forced_key_frames to the options context.

12 years agoavconv: rewrite -qscale and -aq handling.
Anton Khirnov [Thu, 1 Sep 2011 08:04:35 +0000 (10:04 +0200)]
avconv: rewrite -qscale and -aq handling.

Merge video_qscale (set by -qscale) and audio_qscale (set by -aq) into
one 'qscale' field in the options context. Add a shortcut -q for -qscale
and make -aq an alias for -q:a.

12 years agoavconv: move audio_sample_rate to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move audio_sample_rate to the options context.

12 years agocmdutils: add support for programs in check_stream_specifier()
Anton Khirnov [Wed, 31 Aug 2011 20:24:06 +0000 (22:24 +0200)]
cmdutils: add support for programs in check_stream_specifier()

Remove now redundant (and broken/undocumented) opt_programid.

12 years agoavconv: move audio_sample_fmt to options context.
Anton Khirnov [Wed, 31 Aug 2011 06:51:15 +0000 (08:51 +0200)]
avconv: move audio_sample_fmt to options context.

Also document it and replace undocumented and inconsistent
'-sample_fmt list' syntax with -sample_fmts.

12 years agompegts: improve error reporting
Georgi Chorbadzhiyski [Thu, 8 Sep 2011 17:38:48 +0000 (20:38 +0300)]
mpegts: improve error reporting

When reporting continuity error show pid, expected and received cc.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agompegts: on seek, reset the cc for all PIDs
Aviad Rozenhek [Thu, 8 Sep 2011 13:18:48 +0000 (16:18 +0300)]
mpegts: on seek, reset the cc for all PIDs

Prevent false positive continuity counter error logs.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agodoc: explain __STDC_CONSTANT_MACROS in C++
Luca Barbato [Sat, 10 Sep 2011 14:23:50 +0000 (10:23 -0400)]
doc: explain __STDC_CONSTANT_MACROS in C++

In order to build C++ programs using libav you need
-D__STDC_CONSTANT_MACROS appened to the CXXFLAGS.

12 years agoFixed segfault with wavpack decoder on corrupted decorrelation terms sub-blocks.
Laurent Aimar [Wed, 7 Sep 2011 19:43:03 +0000 (21:43 +0200)]
Fixed segfault with wavpack decoder on corrupted decorrelation terms sub-blocks.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavconv: move audio_channels to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move audio_channels to the options context.

12 years agoavconv: move *_disable to options context.
Anton Khirnov [Wed, 31 Aug 2011 06:51:15 +0000 (08:51 +0200)]
avconv: move *_disable to options context.

12 years agoavconv: remove -[vas]lang options.
Anton Khirnov [Wed, 31 Aug 2011 07:17:08 +0000 (09:17 +0200)]
avconv: remove -[vas]lang options.

They are redundant, the same can be now accomplished with -metadata.

12 years agoavconv: move codec tags to options context.
Anton Khirnov [Wed, 31 Aug 2011 06:51:15 +0000 (08:51 +0200)]
avconv: move codec tags to options context.

Add a new -tag option, make -[vas]tag an alias for -tag:[vas]

12 years agocljr: init_get_bits size in bits instead of bytes
Alex Converse [Fri, 9 Sep 2011 21:50:33 +0000 (14:50 -0700)]
cljr: init_get_bits size in bits instead of bytes

12 years agoindeo2: fail if input buffer too small
Alex Converse [Fri, 9 Sep 2011 20:26:49 +0000 (13:26 -0700)]
indeo2: fail if input buffer too small

12 years agoindeo2: init_get_bits size in bits instead of bytes
Alex Converse [Fri, 9 Sep 2011 20:24:19 +0000 (13:24 -0700)]
indeo2: init_get_bits size in bits instead of bytes

12 years agoffv1: Fixed size given to init_get_bits() in decoder.
Laurent Aimar [Fri, 9 Sep 2011 20:04:09 +0000 (22:04 +0200)]
ffv1: Fixed size given to init_get_bits() in decoder.

init_get_bits() takes a number of bits and not a number of bytes as
its size argument.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
12 years agowavpack: Check error codes rather than working around error conditions.
Alex Converse [Thu, 8 Sep 2011 18:02:43 +0000 (11:02 -0700)]
wavpack: Check error codes rather than working around error conditions.

12 years agoEmploy FF_ARRAY_ELEMS instead of manually calculating array length.
Diego Biurrun [Thu, 8 Sep 2011 12:21:38 +0000 (14:21 +0200)]
Employ FF_ARRAY_ELEMS instead of manually calculating array length.

12 years agoFixed invalid access in wavpack decoder on corrupted bitstream.
Laurent Aimar [Wed, 7 Sep 2011 20:02:55 +0000 (22:02 +0200)]
Fixed invalid access in wavpack decoder on corrupted bitstream.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoFixed invalid writes in wavpack decoder on corrupted bitstreams.
Laurent Aimar [Wed, 7 Sep 2011 20:17:39 +0000 (22:17 +0200)]
Fixed invalid writes in wavpack decoder on corrupted bitstreams.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoFixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.
Laurent Aimar [Wed, 7 Sep 2011 21:12:32 +0000 (23:12 +0200)]
Fixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpdec_asf: Fix integer underflow that could allow remote code execution
Michael Niedermayer [Wed, 7 Sep 2011 12:12:42 +0000 (14:12 +0200)]
rtpdec_asf: Fix integer underflow that could allow remote code execution

Fixes MSVR-11-0088.
Credit:  Jeong Wook Oh of Microsoft and Microsoft Vulnerability Research (MSVR)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoAdd LATM muxer
Kieran Kunhya [Tue, 6 Sep 2011 19:05:27 +0000 (20:05 +0100)]
Add LATM muxer

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agov210enc: clip values according to specifications
Baptiste Coudurier [Sun, 8 May 2011 15:58:20 +0000 (17:58 +0200)]
v210enc: clip values according to specifications

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agov210enc: switch to PIX_FMT_422P10
Baptiste Coudurier [Sun, 8 May 2011 15:57:54 +0000 (17:57 +0200)]
v210enc: switch to PIX_FMT_422P10

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agov210dec: switch to PIX_FMT_422P10
Baptiste Coudurier [Sun, 8 May 2011 15:54:20 +0000 (17:54 +0200)]
v210dec: switch to PIX_FMT_422P10

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoAVOptions: remove AVOption.offset <= 0 checks
Anton Khirnov [Mon, 5 Sep 2011 19:44:33 +0000 (21:44 +0200)]
AVOptions: remove AVOption.offset <= 0 checks

They will only ever be <=0 if the option is broken, in which case this
check is hiding a bug.

12 years agoAVOptions: deprecate av_opt_set_defaults2
Anton Khirnov [Sun, 4 Sep 2011 09:42:41 +0000 (11:42 +0200)]
AVOptions: deprecate av_opt_set_defaults2

It's a hack which was created to allow for multiple options with
different defaults to refer to same field (e.g. 'b' vs 'ab'). There is
no need for it anymore.

12 years agoAVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.h
Anton Khirnov [Sun, 4 Sep 2011 09:39:49 +0000 (11:39 +0200)]
AVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.h

Also change it to be more readable.

12 years agolibx264: fix setting some more parameters
Anton Khirnov [Wed, 7 Sep 2011 07:13:02 +0000 (09:13 +0200)]
libx264: fix setting some more parameters

Specifically, trellis, nr, me_range, me_method, subq, b_strategy,
keyint_min, chroma_me and coder.
Change their defaults to -1 and apply them after
x264_param_default_preset() if the user explicitly set them.

12 years agolibx264: fix setting the H.264 level
Andrej Peterka [Wed, 7 Sep 2011 06:27:28 +0000 (08:27 +0200)]
libx264: fix setting the H.264 level

Move setting it after x264_param_default_preset()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agolibx264: add 'direct-pred' private option
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'direct-pred' private option

Deprecate AVCodecContext.directpred

12 years agolibx264: add 'partitions' private option
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'partitions' private option

Deprecate AVCodecContext.partitions.

12 years agolibx264: add 'cplxblur' private option
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'cplxblur' private option

Deprecate AVCodecContext.complexityblur

12 years agolibx264: add 'deblock' private option
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'deblock' private option

Deprecate AVCodecContext.deblockalpha/deblockbeta

12 years agolibx264: add 'b-bias' private option
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'b-bias' private option

Deprecate AVCodecContext.bframebias.

12 years agolibx264: fix setting some options.
Anton Khirnov [Thu, 1 Sep 2011 10:59:29 +0000 (12:59 +0200)]
libx264: fix setting some options.

Specifically: gop_size, max_b_frames, scenechange_threshold, qmin, qmax,
max_qdiff, qblur, qcompress and refs.

Change their default values to -1 and only use them if the user
explicitly set them. Otherwise x264 defaults are used.

Move setting those options after x264_param_default_preset(), so they
don't get overwritten by it.

12 years agolibx264: remove useless assignment
Anton Khirnov [Wed, 31 Aug 2011 12:09:19 +0000 (14:09 +0200)]
libx264: remove useless assignment

priv_data is memset to 0.

12 years agoac3dec: avoid pointless alloc and indirection for input_buffer
Reimar Döffinger [Thu, 24 Mar 2011 20:27:05 +0000 (21:27 +0100)]
ac3dec: avoid pointless alloc and indirection for input_buffer

Since we now always allocate it, it can simply be made part of the context
instead.

12 years agompeg12: cosmetics: reformat as K&R
Diego Biurrun [Tue, 6 Sep 2011 09:46:57 +0000 (11:46 +0200)]
mpeg12: cosmetics: reformat as K&R

12 years agoac3enc: Add channel coupling support for the fixed-point AC-3 encoder.
Justin Ruggles [Sun, 7 Aug 2011 21:47:42 +0000 (17:47 -0400)]
ac3enc: Add channel coupling support for the fixed-point AC-3 encoder.

Update FATE references accordingly.

12 years agoac3enc: scale floating-point coupling channel coefficients in
Justin Ruggles [Sun, 7 Aug 2011 21:51:13 +0000 (17:51 -0400)]
ac3enc: scale floating-point coupling channel coefficients in
scale_coefficients() rather than in apply_channel_coupling()

12 years agoac3enc: fix encoding of stereo ac3 files when rematrixing is disabled.
Justin Ruggles [Fri, 26 Aug 2011 17:02:29 +0000 (13:02 -0400)]
ac3enc: fix encoding of stereo ac3 files when rematrixing is disabled.

The number of rematrixing bands still needs to be calculated.

12 years agowavpack: fix wrong return value in wavpack_decode_block()
Kostya Shishkov [Mon, 5 Sep 2011 10:37:50 +0000 (12:37 +0200)]
wavpack: fix wrong return value in wavpack_decode_block()

This function should return number of samples decoded, not number of bytes
decoded.
Spotted by Uoti Urpala.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoavconv: fix parsing metadata specifiers.
Anton Khirnov [Mon, 5 Sep 2011 09:39:09 +0000 (11:39 +0200)]
avconv: fix parsing metadata specifiers.

After 039267f192f335144d9251e6f05a1513dd1e8ef1, metadata specifiers are
passed without the leading ':'. Remove a ++ that didn't take this into
account.

12 years agofate: use +frame+slice named constants instead of '3'
Anton Khirnov [Sun, 4 Sep 2011 08:01:59 +0000 (10:01 +0200)]
fate: use +frame+slice named constants instead of '3'

12 years agompeg12: propagate more real return values through chunk decode error return and fix...
Dustin Brody [Sat, 3 Sep 2011 19:38:17 +0000 (15:38 -0400)]
mpeg12: propagate more real return values through chunk decode error return and fix some indentation

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agowavpack: use context reset in appropriate places
Kostya Shishkov [Fri, 2 Sep 2011 09:37:39 +0000 (11:37 +0200)]
wavpack: use context reset in appropriate places

This fixes improper flushing in the cases when the same frame is decoded in
several iterations (for being too large to fit into output buffer) and flush is
called mid-decoding and it also resets context in case of decoding errors.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavconv: move mux_preload and mux_max_delay to options context
Anton Khirnov [Wed, 31 Aug 2011 06:51:15 +0000 (08:51 +0200)]
avconv: move mux_preload and mux_max_delay to options context

12 years agoavconv: move bitstream filters to options context.
Anton Khirnov [Wed, 31 Aug 2011 06:45:25 +0000 (08:45 +0200)]
avconv: move bitstream filters to options context.

Change syntax -- -[vas]bsf are replaced by -bsf:[stream specifier], the
argument is now a comma-separated list of bitstream filters.

12 years agoavconv: move rate_emu to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move rate_emu to options context.

Make it work properly with multiple input files.

12 years agoavconv: move max_frames to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move max_frames to options context.

Add a -frames option that uses generic stream specifiers, change
-[vad]frames into aliases to it.

12 years agoavconv: move metadata to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move metadata to options context.

It is now possible to set metadata on streams and chapters.

12 years agoavconv: move ts scale to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move ts scale to options context.

12 years agoavconv: move chapter maps to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move chapter maps to options context.

12 years agoavconv: move metadata maps to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move metadata maps to options context.

12 years agoavconv: move codec_names to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move codec_names to options context.

12 years agolavc: fix type for thread_type option
Anton Khirnov [Sun, 4 Sep 2011 07:56:47 +0000 (09:56 +0200)]
lavc: fix type for thread_type option

It should be flags, not int.

12 years agoavconv: move format to options context
Anton Khirnov [Sun, 28 Aug 2011 16:20:17 +0000 (18:20 +0200)]
avconv: move format to options context

12 years agoavconv: move limit_filesize to options context
Anton Khirnov [Sun, 28 Aug 2011 16:20:17 +0000 (18:20 +0200)]
avconv: move limit_filesize to options context

12 years agoavconv: move start_time, recording_time and input_ts_offset to options context
Anton Khirnov [Sun, 28 Aug 2011 16:20:17 +0000 (18:20 +0200)]
avconv: move start_time, recording_time and input_ts_offset to options context

12 years agoavconv: add a context for options.
Anton Khirnov [Sun, 28 Aug 2011 15:21:56 +0000 (17:21 +0200)]
avconv: add a context for options.

Move stream maps to it.

Eventually all non-global options should be stored in it.

12 years agocmdutils: allow storing per-stream/chapter/.... options in a generic way
Anton Khirnov [Mon, 29 Aug 2011 05:54:56 +0000 (07:54 +0200)]
cmdutils: allow storing per-stream/chapter/.... options in a generic way

12 years agocmdutils: split per-option code out of parse_options().
Anton Khirnov [Mon, 29 Aug 2011 06:11:03 +0000 (08:11 +0200)]
cmdutils: split per-option code out of parse_options().

This allows options like -target, which are just shortcuts for other
options, to work without dummy function for all options they invoke.

12 years agocmdutils: add support for caller-provided option context.
Anton Khirnov [Sun, 28 Aug 2011 12:43:54 +0000 (14:43 +0200)]
cmdutils: add support for caller-provided option context.

This is the first step to removing the globals plague from avtools.

12 years agocmdutils: declare only one pointer type in OptionDef
Anton Khirnov [Sun, 28 Aug 2011 12:27:27 +0000 (14:27 +0200)]
cmdutils: declare only one pointer type in OptionDef

This will be useful in the following commit.

12 years agocmdutils: move grow_array() from avconv to cmdutils.
Anton Khirnov [Mon, 29 Aug 2011 05:11:57 +0000 (07:11 +0200)]
cmdutils: move grow_array() from avconv to cmdutils.