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
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mpeg12: add 'scan_offset' private option.
Deprecate CODEC_FLAG_SVCD_SCAN_OFFSET
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263/p encoder: add 'structured_slices' private option.
Deprecate CODEC_FLAG_H263P_SLICE_STRUCT
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263/p encoder: add 'obmc' private option.
Deprecate CODEC_FLAG_OBMC
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263p encoder: add 'aiv' private option.
Deprecate CODEC_FLAG_H263P_AIV
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263p encoder: add 'umv' private option.
Deprecate CODEC_FLAG_H263P_UMV
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mpeg12enc/mpeg4videoenc: add 'alternate_scan' private option.
Deprecate CODEC_FLAG_ALT_SCAN
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mjpegdec: add 'extern_huff' private option.
Deprecate CODEC_FLAG_EXTERN_HUFF
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mpeg4enc: add 'data_partitioning' private option.
Deprecate CODEC_FLAG_PART
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
snow: add 'memc_only' private option.
Deprecate CODEC_FLAG2_MEMC_ONLY
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
libx264: add 'mbtree' private option.
Deprecate CODEC_FLAG2_MBTREE
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
libx264: add 'psy' private option.
Deprecate CODEC_FLAG2_PSY
Anton Khirnov [Sat, 27 Aug 2011 08:09:09 +0000 (10:09 +0200)]
libmp3lame: add 'reservoir' private option.
Deprecate CODEC_FLAG2_BIT_RESERVOIR
Anton Khirnov [Sat, 27 Aug 2011 07:57:36 +0000 (09:57 +0200)]
mpeg2enc: add 'non_linear_quant' private option
Deprecate CODEC_FLAG2_NON_LINEAR_QUANT
Anton Khirnov [Sat, 27 Aug 2011 06:34:05 +0000 (08:34 +0200)]
mpeg12enc: add drop_frame_timecode private option.
Deprecate CODEC_FLAG2_DROP_FRAME_TIMECODE
Anton Khirnov [Sat, 27 Aug 2011 06:26:14 +0000 (08:26 +0200)]
mpeg12enc: add intra_vlc private option.
Deprecate CODEC_FLAG2_INTRA_VLC.
Alberto Delmás [Sat, 27 Aug 2011 17:37:26 +0000 (19:37 +0200)]
VC1: Support dynamic dimension changes
Fixes SA00072, SA00073, SA10150, SA10151, Issue2076
Improves SA10153
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Dustin Brody [Thu, 25 Aug 2011 23:47:01 +0000 (19:47 -0400)]
mjpeg: treat external huffman table setup failure as codec init failure if external huffman table use requested
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Anton Khirnov [Wed, 24 Aug 2011 14:26:15 +0000 (16:26 +0200)]
lavc: deprecate CODEC_FLAG2_BRDO
It's been unused for the last 3 years.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'aud' private option.
Deprecate CODEC_FLAG2_AUD.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'fast-pskip' private option.
Deprecate CODEC_FLAG2_FASTPSKIP.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add '8x8dct' private option.
Deprecate CODEC_FLAG2_8X8DCT.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'mixed-refs' private option.
Deprecate CODEC_FLAG2_MIXED_REFS.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'weightb' private option.
Deprecate CODEC_FLAG2_BPYRAMID.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'b-pyramid' private option.
Deprecate CODEC_FLAG2_BPYRAMID.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'intra-refresh' private option.
Deprecate CODEC_FLAG2_INTRA_REFRESH.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'ssim' private option.
Deprecate CODEC_FLAG2_SSIM.
Anton Khirnov [Sat, 27 Aug 2011 05:52:03 +0000 (07:52 +0200)]
libx264: make options compatible with x264
Replace '_' with '-', merge psy-trellis into psy-rd and rename cqp->qp
Also fix typo pdy-rd -> psy-rd
Luca Barbato [Mon, 29 Aug 2011 20:47:06 +0000 (22:47 +0200)]
avcodec: remove misleading comment
coded_width is the width before lowres scaling,
coded_height is the height before lowres scaling.
Anton Khirnov [Mon, 29 Aug 2011 10:53:08 +0000 (12:53 +0200)]
avconv: remove -threads option.
It's only shadowing the AVOption with the same name.
Alex Converse [Tue, 30 Aug 2011 02:28:42 +0000 (19:28 -0700)]
avconv: Replace raw picture frame swapping hack.
Kostya Shishkov [Tue, 30 Aug 2011 09:02:22 +0000 (10:02 +0100)]
RV40: reuse some H.264 motion compensation functions in RV40.
Since RV40 is based on H.264, it uses the same interpolation filters and
functions for halfpel interpolation in one direction can be reused.
Unfortunately other cases are implemented differently and produce slightly
different output because of rounding.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Luca Barbato [Sun, 21 Aug 2011 16:27:44 +0000 (18:27 +0200)]
Revert "h264: Properly set coded_{width, height} when parsing H.264."
This reverts commit
b47904d158709bdec1a9d40e83d1abadf50081dc.
coded_{width, height} overwrites width and height in avcodec_open and
it currently just report the non-lowres size.
Tomas Härdin [Mon, 29 Aug 2011 11:44:13 +0000 (13:44 +0200)]
isom: add missing AVC-Intra tags, rearrange list and update comments
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Anton Khirnov [Sun, 28 Aug 2011 16:51:45 +0000 (18:51 +0200)]
avconv: remove stubs of crop* and pad* options
Anton Khirnov [Sat, 13 Aug 2011 10:20:50 +0000 (12:20 +0200)]
avconv: re-add nb_streams to InputFile.
It was mistakenly removed in
2cf8355f98681bdd726b739008acd5483f82f8d7,
not taking into account that new streams might appear in av_read_frame()
that avconv doesn't know about.
Fixes bug 24.
Kostya Shishkov [Sat, 13 Aug 2011 19:02:54 +0000 (21:02 +0200)]
Use deinterleavers for demangling audio packets in RealMedia.
Unlike other containers RealMedia stores its audio packets in scrambled form,
with interleaver ID preceeding audio codec ID. Currently deinterleaving
decision is tied to the codec while it's possible to have non-default
deinterleaver with audio codec (like Int0 deinterleaver instead of specific
one for Sipro).
Signed-off-by: Anton Khirnov <anton@khirnov.net>