OSDN Git Service
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.
Anton Khirnov [Sat, 3 Sep 2011 10:53:53 +0000 (12:53 +0200)]
doc/avconv: document that global options should be specified first.
Anton Khirnov [Sat, 3 Sep 2011 05:08:55 +0000 (07:08 +0200)]
doc/avconv: remove entries for nonexistent options
Anton Khirnov [Fri, 2 Sep 2011 20:53:54 +0000 (22:53 +0200)]
doc/avconv: remove documentation for removed 'timestamp' option
Anton Khirnov [Fri, 2 Sep 2011 20:17:38 +0000 (22:17 +0200)]
doc: cosmetics, rename fftools-common-opts to avtools-....
Anton Khirnov [Fri, 2 Sep 2011 20:07:30 +0000 (22:07 +0200)]
avconv: move streamid_map to options context.
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.
Anton Khirnov [Fri, 2 Sep 2011 16:03:31 +0000 (18:03 +0200)]
avconv: move top_field_first to options context.
Anton Khirnov [Fri, 2 Sep 2011 15:57:56 +0000 (17:57 +0200)]
avconv: move inter/intra matrix to options context.
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.
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.
Anton Khirnov [Fri, 2 Sep 2011 14:06:18 +0000 (16:06 +0200)]
avconv: move video_rc_override_string to 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.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame aspect ratio 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.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame_rate 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.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move forced_key_frames to the options context.
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.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move audio_sample_rate to the options context.
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.
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.
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>
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>
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.
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>
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move audio_channels to the options context.
Anton Khirnov [Wed, 31 Aug 2011 06:51:15 +0000 (08:51 +0200)]
avconv: move *_disable to options context.
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.
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]
Alex Converse [Fri, 9 Sep 2011 21:50:33 +0000 (14:50 -0700)]
cljr: init_get_bits size in bits instead of bytes
Alex Converse [Fri, 9 Sep 2011 20:26:49 +0000 (13:26 -0700)]
indeo2: fail if input buffer too small
Alex Converse [Fri, 9 Sep 2011 20:24:19 +0000 (13:24 -0700)]
indeo2: init_get_bits size in bits instead of bytes
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>
Alex Converse [Thu, 8 Sep 2011 18:02:43 +0000 (11:02 -0700)]
wavpack: Check error codes rather than working around error conditions.
Diego Biurrun [Thu, 8 Sep 2011 12:21:38 +0000 (14:21 +0200)]
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.
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.
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.
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>
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'direct-pred' private option
Deprecate AVCodecContext.directpred
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'partitions' private option
Deprecate AVCodecContext.partitions.
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'cplxblur' private option
Deprecate AVCodecContext.complexityblur
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'deblock' private option
Deprecate AVCodecContext.deblockalpha/deblockbeta
Anton Khirnov [Thu, 1 Sep 2011 11:15:09 +0000 (13:15 +0200)]
libx264: add 'b-bias' private option
Deprecate AVCodecContext.bframebias.
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.
Anton Khirnov [Wed, 31 Aug 2011 12:09:19 +0000 (14:09 +0200)]
libx264: remove useless assignment
priv_data is memset to 0.
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.
Diego Biurrun [Tue, 6 Sep 2011 09:46:57 +0000 (11:46 +0200)]
mpeg12: cosmetics: reformat as K&R
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.
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()
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.
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>
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.
Anton Khirnov [Sun, 4 Sep 2011 08:01:59 +0000 (10:01 +0200)]
fate: use +frame+slice named constants instead of '3'
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>
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>
Anton Khirnov [Wed, 31 Aug 2011 06:51:15 +0000 (08:51 +0200)]
avconv: move mux_preload and mux_max_delay 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.
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.
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.
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.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move ts scale to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move chapter maps to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move metadata maps to options context.
Anton Khirnov [Mon, 29 Aug 2011 07:16:42 +0000 (09:16 +0200)]
avconv: move codec_names to options context.
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.
Anton Khirnov [Sun, 28 Aug 2011 16:20:17 +0000 (18:20 +0200)]
avconv: move format to options context
Anton Khirnov [Sun, 28 Aug 2011 16:20:17 +0000 (18:20 +0200)]
avconv: move limit_filesize 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
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.
Anton Khirnov [Mon, 29 Aug 2011 05:54:56 +0000 (07:54 +0200)]
cmdutils: allow storing per-stream/chapter/.... options in a generic way
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.
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.
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.
Anton Khirnov [Mon, 29 Aug 2011 05:11:57 +0000 (07:11 +0200)]
cmdutils: move grow_array() from avconv to cmdutils.
Anton Khirnov [Mon, 29 Aug 2011 05:03:24 +0000 (07:03 +0200)]
cmdutils: move exit_program() declaration to cmdutils from avconv
Allows cmdutils to call each tool's own cleanup function.
Stefan Fritsch [Sun, 4 Sep 2011 08:56:24 +0000 (10:56 +0200)]
http: Consider the stream as seekable if the reply contains Accept-Ranges: bytes
The initial request contains "Range: 0-", which servers normally
have responded with "HTTP/1.1 206 Partial Content" reply with
a Content-Range header, which was used as indicator for seekability.
Apache, since 2.2.20, responds with "HTTP/1.1 200 OK" for these
requests, which is more friendly to caches and proxies, but the
seekability still is indicated via the Accept-Ranges: bytes header.
Signed-off-by: Martin Storsjö <martin@martin.st>
Luca Barbato [Wed, 31 Aug 2011 17:27:17 +0000 (19:27 +0200)]
nutenc: add namespace to the api facing functions
Rename write_{header,packet,trailer} to nut_write_{header,packet,trailer}
in order to make easier debugging them.
Anton Khirnov [Tue, 23 Aug 2011 05:46:51 +0000 (07:46 +0200)]
AVOptions: fix av_set_string3() doxy to match reality.
Fixes bug 28.
Anton Khirnov [Tue, 23 Aug 2011 05:43:54 +0000 (07:43 +0200)]
cmdutils: get rid of dummy contexts for examining AVOptions.
Replace it with newly introduced libavutil API.
Anton Khirnov [Tue, 23 Aug 2011 05:23:52 +0000 (07:23 +0200)]
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
Anton Khirnov [Tue, 23 Aug 2011 05:11:26 +0000 (07:11 +0200)]
AVOptions: add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find().
It allows to search for options only with AVClass, without allocating
the corresponding context.
Sean McGovern [Mon, 25 Jul 2011 22:51:02 +0000 (18:51 -0400)]
cpu detection: avoid a signed overflow
1<<31 overflows because 1 is signed, so force it to unsigned.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Alex Converse [Wed, 31 Aug 2011 20:57:01 +0000 (13:57 -0700)]
codec-regression: force vsync 0 on the me_threshold test to make sure frames match.
Michael Niedermayer [Thu, 1 Sep 2011 01:46:04 +0000 (03:46 +0200)]
avconv: fix some bugs introduced in
630902a1e1336e7ee0cf3dcbcb6eb07af8edf660
These caused scrambled error messages to be printed and
floating point exceptions.
For example when there was no decoder available for a
stream.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Anton Khirnov [Thu, 1 Sep 2011 08:17:09 +0000 (10:17 +0200)]
libmp3lame: fix typo
FF_API_LAME_GLOBAL_OPTIONS => FF_API_LAME_GLOBAL_OPTS
Thanks to Clément Bœsch for spotting.
Anton Khirnov [Tue, 23 Aug 2011 08:27:49 +0000 (10:27 +0200)]
AVOptions: drop av_ prefix from static av_get_number().
Anton Khirnov [Wed, 31 Aug 2011 17:26:01 +0000 (19:26 +0200)]
libx264: use X264_THREADS_AUTO constant instead of 0.
Anton Khirnov [Wed, 31 Aug 2011 12:04:02 +0000 (14:04 +0200)]
libx264: set default thread count to 0 (auto)
Anton Khirnov [Sat, 27 Aug 2011 11:33:10 +0000 (13:33 +0200)]
lavc: cosmetics, group deprecated codec flags