aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-04avcodec: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch
2015-12-04ffmdec: reject zero-sized chunksAndreas Cadhalpun
If size is zero, avio_get_str fails, leaving the buffer uninitialized. This causes invalid reads in av_set_options_string. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-12-04ffmdec: only seek back at EOF if a server is attachedAndreas Cadhalpun
Otherwise the ffm demuxer can return the same packets endlessly, if there is no server attached. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-12-04libavcodec/aacsbr_tablegen: fix tablegen on windowsHendrik Leppkes
Including these headers is not needed and breaks building on Windows as it tries to activate the full compat tools, which are not needed for host tools.
2015-12-04avcodec: include tablegen compat header before the tablegen functionalityHendrik Leppkes
2015-12-04libavutil/tablegen: add missing math.h includeHendrik Leppkes
2015-12-04avformat/oggparsetheora: Check duration to be not AV_NOPTS_VALUE (and ↵Michael Niedermayer
positive) before use Fixes: 1536b9b096a8f95b742bae9d3d761cc6/signal_sigsegv_294aaed_7322_4fad88a38dc8952dc20dcb60c1895758.ogg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04avcodec/dnxhddec: Fix runtime error: left shift of negative valueMichael Niedermayer
Fixes: 2abd25478c62a675f335fac00b467023/asan_static-oob_10aff98_1227_8811480c6ef1e970a7977ceb7e5a9958.mxf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04ffmpeg: Check pkt_dts for AV_NOPTS_VALUEMichael Niedermayer
Fixes integer overflow Fixes: 1536b9b096a8f95b742bae9d3d761cc6/signal_sigsegv_294aaed_2039_8d1797aeb823ea43858d0fa45c9eb899.ogv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04avcodec/vp3: Fix "runtime error: left shift of negative value"Michael Niedermayer
Fixes: 5c6129154b356b80bcab86f9e3ee5d29/signal_sigabrt_7ffff6ae7cc9_7322_d26ac6d7cb6567db1b8be0159b387d0b.ogg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04avformat/movenc: HE-AAC correct FourCC in ISMLYann Coupin
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04avformat/mpjpegdec: Fix "libavformat/mpjpegdec.c:269:9: warning: passing ↵Michael Niedermayer
argument 3 of av_stristart from incompatible pointer type" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04mips: rename mipsdspr1 to mipsdspVicente Olivert Riera
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04mpegtsenc: Fix off-by-one in indexing into Opus channel mapping arraysSebastian Dröge
Fixes, CID1338323, CID1338324 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04avcodec/h264_direct: Check CO-POCs before useMichael Niedermayer
Fixes harmless integer overflow Fixes mozilla bug 1230286 Found-by: Tyson Smith Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-04avformat/utils: Fix "libavformat/utils.c:927:35: runtime error: signed ↵Michael Niedermayer
integer overflow: -2450238577049583619 - 9223090561878065151 cannot be represented in type long long" Fixes Mozilla bug 1229205 Found-by: Tyson Smith Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-03aacenc_ltp: fix out of bounds memory accessRostislav Pehlivanov
Discovered by Coverity.
2015-12-03avformat/riffdec: remove special case for bitrate > 32bitMichael Niedermayer
AVCodecContext.bitrate is 64bit Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-03avformat/riffdec: Initialize bitrateMichael Niedermayer
Fixes CID1338334 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-03lavf/mpegts: use AVERROR_INVALIDDATA instead of AVERROR(EINTR).Nicolas George
2015-12-03lavf/lxfdec: use FFERROR_REDO instead of AVERROR(EAGAIN).Nicolas George
2015-12-03lavf/mpeg: use FFERROR_REDO instead of AVERROR(EAGAIN).Nicolas George
2015-12-03lavf/flvdec: use FFERROR_REDO instead of AVERROR(EAGAIN).Nicolas George
Fix trac ticket #5041.
2015-12-03lavf: add FFERROR_REDO to let demuxers return no packet.Nicolas George
2015-12-03mpegencts: Fix overflow in cbr mode period calculationsTimo Teräs
ts->mux_rate is int (signed 32-bit) type. The period calculations will start to overflow when mux_rate > 5mbps. This fixes overflows by converting first to 64-bit type. Fixes #5044. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-03avfilter/af_agate: change default for detection to rmsPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-03avfilter/af_sidechaincompress: kill init functionPaul B Mahol
Should make addition of process_command easier. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-03avfilter/af_agate: compile agate only when requested.Paul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-03avfilter/af_agate: add level_sc option for sidechaingate filterPaul B Mahol
Also correct usage of input gain for both filters. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-03avfilter: add sidechaingate filterPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-03avfilter/af_agate: prepare for adding sidechain versionPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-03tests/api: Fix API test build on windows with --enable-sharedHendrik Leppkes
2015-12-03avformat/mpjpegdec: fix mixed declarations and codeJames Almer
2015-12-03avutil/timecode: Fix fps checkMichael Niedermayer
The fps variable is explicitly set to -1 in case of some errors, the check must thus be signed or the code setting it needs to use 0 as error code the type of the field could be changed as well but its in an installed header Fixes: integer overflow Fixes: 9982cc157b1ea90429435640a989122f/asan_generic_3ad004a_3799_22cf198d9cd09928e2d9ad250474fa58.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-03avcodec/jpeg2000: fix type of arguments of tag_tree_sizeMichael Niedermayer
Fixes: out of array read Fixes: 36b8096fefab16c4c9326a508053e95c/signal_sigsegv_1d9ce18_3233_1a55196b018106dfabeace071a432d9e.r3d Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-02avfilter/af_flanger: use rint instead of floor hackGanesh Ajjanagadde
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-02avfilter/vf_perspective: use lrint instead of floor hackGanesh Ajjanagadde
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-02avfilter/vsrc_mptestsrc: use lrint instead of floor hackGanesh Ajjanagadde
lrint is faster, and is more consistent across the codebase. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-02avutil/crc: avoid needless space wastage of hardcoded crc tableGanesh Ajjanagadde
There was no reason AFAIK for making AV_CRC_24_IEEE 12. This simply resulted in wasted space under --enable-hardcoded-tables: dynamic: 1318672 libavutil/libavutil.so.55 old : 1330680 libavutil/libavutil.so.55 new : 1326488 libavutil/libavutil.so.55 Minor version number is bumped, with ifdefry due to API breakage. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-03avcodec/vp3: ensure header is parsed successfully before tablesMichael Niedermayer
Fixes assertion failure Fixes: 266ee543812e934f7b4a72923a2701d4/signal_sigabrt_7ffff6ae7cc9_7322_85218d61759d461bdf7387180e8000c9.ogg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-03avformat/utils: Move end_time1 AV_NOPTS_VALUE Check after rescaleMichael Niedermayer
Fixes integer overflow Fixes: 266ee543812e934f7b4a72923a2701d4/signal_sigabrt_7ffff6ae7cc9_7322_85218d61759d461bdf7387180e8000c9.ogg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-03avformat/utils: Check AVFormatContext->duration in compute_chapters_end() ↵Michael Niedermayer
before use Fixes integer overflow Fixes: 266ee543812e934f7b4a72923a2701d4/signal_sigabrt_7ffff6ae7cc9_7322_85218d61759d461bdf7387180e8000c9.ogg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-02avfilter/af_compand: do not clip; allow >0dB curve pointsPaul B Mahol
Do not clip output samples, so that clipping can be handled by other filters. Alow setting curve points above 0dB. This is useful when operating with floats. Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-02avformat/mpjpeg: utilize MIME boundary value to detect start of new frameAlex Agranovsky
This code is disabled by default so not to regress endpoints sending invalid MIME, but can be enabled via AVOption 'strict_mime_boundary' Signed-off-by: Alex Agranovsky <alex@sighthound.com>
2015-12-02avformat/mpjpeg: allow processing of MIME parts without Content-Length headerAlex Agranovsky
Fixes ticket 5023 Signed-off-by: Alex Agranovsky <alex@sighthound.com>
2015-12-02avutil/rational: Test av_rescale_rnd() with combinations of "special" valuesMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-02avutil/mathematics: return INT64_MIN (=AV_NOPTS_VALUE) from av_rescale_rnd() ↵Michael Niedermayer
for overflows Fixes integer overflow Fixes: mozilla bug 1229167 Found-by: Tyson Smith Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-02avcodec/apedec: Check length in long_filter_high_3800()Michael Niedermayer
Fixes out of array read Fixes: 0a7ff0c1d93da9cef28a315ec91b692a/asan_heap-oob_4a52e5_3604_9c56dbb20e308f4faeef7b35f688521a.ape Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-02vp9: always keep s->bytesperpixel and ctx->pix_fmt in sync.Ronald S. Bultje
Fixes mozilla bug 1229128.
2015-12-02git-howto: mention how to clone ffmpeg-webAndreas Cadhalpun
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>