Laurent Aimar
0aedab0340
Fixed invalid writes in wavpack decoder on corrupted bitstreams.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Laurent Aimar
beefafda63
Fixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
5ea091fb5a
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>
13 years ago
Kieran Kunhya
0ca36b4de7
Add LATM muxer
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Baptiste Coudurier
635bbecfc3
v210enc: clip values according to specifications
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Baptiste Coudurier
d239b83e2e
v210enc: switch to PIX_FMT_422P10
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Baptiste Coudurier
08fa23d6c2
v210dec: switch to PIX_FMT_422P10
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
4dbcdfa86d
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.
13 years ago
Anton Khirnov
79eff91325
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.
13 years ago
Anton Khirnov
a7e2b2ccc9
AVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.h
Also change it to be more readable.
13 years ago
Anton Khirnov
0962f23b35
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.
13 years ago
Andrej Peterka
2bb5d637fc
libx264: fix setting the H.264 level
Move setting it after x264_param_default_preset()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
9c684feadc
libx264: add 'direct-pred' private option
Deprecate AVCodecContext.directpred
13 years ago
Anton Khirnov
0635a8aa21
libx264: add 'partitions' private option
Deprecate AVCodecContext.partitions.
13 years ago
Anton Khirnov
7042337673
libx264: add 'cplxblur' private option
Deprecate AVCodecContext.complexityblur
13 years ago
Anton Khirnov
71b5f4427b
libx264: add 'deblock' private option
Deprecate AVCodecContext.deblockalpha/deblockbeta
13 years ago
Anton Khirnov
f83c45183e
libx264: add 'b-bias' private option
Deprecate AVCodecContext.bframebias.
13 years ago
Anton Khirnov
bb73cda2f6
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.
13 years ago
Anton Khirnov
d8dee0e7bd
libx264: remove useless assignment
priv_data is memset to 0.
13 years ago
Reimar Döffinger
459fe331e9
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.
14 years ago
Diego Biurrun
6192b6f3e7
mpeg12: cosmetics: reformat as K&R
13 years ago
Justin Ruggles
ae264bb29b
ac3enc: Add channel coupling support for the fixed-point AC-3 encoder.
Update FATE references accordingly.
14 years ago
Justin Ruggles
a0d17b6d45
ac3enc: scale floating-point coupling channel coefficients in
scale_coefficients() rather than in apply_channel_coupling()
14 years ago
Justin Ruggles
3e5722a8ca
ac3enc: fix encoding of stereo ac3 files when rematrixing is disabled.
The number of rematrixing bands still needs to be calculated.
14 years ago
Kostya Shishkov
bcd4aa8bec
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>
13 years ago
Anton Khirnov
a2a38d9665
avconv: fix parsing metadata specifiers.
After 039267f192f335144d9251e6f05a1513dd1e8ef1, metadata specifiers are
passed without the leading ':'. Remove a ++ that didn't take this into
account.
13 years ago
Anton Khirnov
bc5acfa7af
fate: use +frame+slice named constants instead of '3'
13 years ago
Dustin Brody
ff17fc6353
mpeg12: propagate more real return values through chunk decode error return and fix some indentation
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Kostya Shishkov
9bc4e21a9b
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>
13 years ago
Anton Khirnov
dc26318c2d
avconv: move mux_preload and mux_max_delay to options context
14 years ago
Anton Khirnov
d821cbe2ff
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.
14 years ago
Anton Khirnov
f480532822
avconv: move rate_emu to options context.
Make it work properly with multiple input files.
14 years ago
Anton Khirnov
96139b5e32
avconv: move max_frames to options context.
Add a -frames option that uses generic stream specifiers, change
-[vad]frames into aliases to it.
14 years ago
Anton Khirnov
039267f192
avconv: move metadata to options context.
It is now possible to set metadata on streams and chapters.
14 years ago
Anton Khirnov
33f75d72e6
avconv: move ts scale to options context.
14 years ago
Anton Khirnov
c5bb372e85
avconv: move chapter maps to options context.
14 years ago
Anton Khirnov
847529f84a
avconv: move metadata maps to options context.
14 years ago
Anton Khirnov
35e6f8c174
avconv: move codec_names to options context.
14 years ago
Anton Khirnov
fb47997edb
lavc: fix type for thread_type option
It should be flags, not int.
13 years ago
Anton Khirnov
7041bb3b1a
avconv: move format to options context
14 years ago
Anton Khirnov
13ccba50d4
avconv: move limit_filesize to options context
14 years ago
Anton Khirnov
6b779cccaa
avconv: move start_time, recording_time and input_ts_offset to options context
14 years ago
Anton Khirnov
575ec4e17d
avconv: add a context for options.
Move stream maps to it.
Eventually all non-global options should be stored in it.
14 years ago
Anton Khirnov
6361c5e1e6
cmdutils: allow storing per-stream/chapter/.... options in a generic way
14 years ago
Anton Khirnov
2f8e586df1
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.
14 years ago
Anton Khirnov
7cc8d6385a
cmdutils: add support for caller-provided option context.
This is the first step to removing the globals plague from avtools.
14 years ago
Anton Khirnov
7efe05ab29
cmdutils: declare only one pointer type in OptionDef
This will be useful in the following commit.
14 years ago
Anton Khirnov
cac651c834
cmdutils: move grow_array() from avconv to cmdutils.
14 years ago
Anton Khirnov
dad09ff93f
cmdutils: move exit_program() declaration to cmdutils from avconv
Allows cmdutils to call each tool's own cleanup function.
14 years ago
Stefan Fritsch
346ea9e222
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>
13 years ago