Michael Niedermayer
18268f761b
avcodec/vp3: Fix "runtime error: left shift of negative value"
...
Fixes: 5c6129154b356b80bcab86f9e3ee5d29/signal_sigabrt_7ffff6ae7cc9_7322_d26ac6d7cb6567db1b8be0159b387d0b.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Yann Coupin
d89c4846e0
avformat/movenc: HE-AAC correct FourCC in ISML
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
9696a01f12
avformat/mpjpegdec: Fix "libavformat/mpjpegdec.c:269:9: warning: passing argument 3 of av_stristart from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Vicente Olivert Riera
a27401a05b
mips: rename mipsdspr1 to mipsdsp
...
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Sebastian Dröge
eb3628d87f
mpegtsenc: Fix off-by-one in indexing into Opus channel mapping arrays
...
Fixes, CID1338323, CID1338324
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
77a644e6fa
avcodec/h264_direct: Check CO-POCs before use
...
Fixes harmless integer overflow
Fixes mozilla bug 1230286
Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
cafb195604
avformat/utils: Fix "libavformat/utils.c:927:35: runtime error: signed 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>
9 years ago
Rostislav Pehlivanov
ed08cbd7b1
aacenc_ltp: fix out of bounds memory access
...
Discovered by Coverity.
9 years ago
Michael Niedermayer
4e31176e14
avformat/riffdec: remove special case for bitrate > 32bit
...
AVCodecContext.bitrate is 64bit
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
32bf6550cb
avformat/riffdec: Initialize bitrate
...
Fixes CID1338334
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Nicolas George
085ab74972
lavf/mpegts: use AVERROR_INVALIDDATA instead of AVERROR(EINTR).
9 years ago
Nicolas George
eb2e4fb674
lavf/lxfdec: use FFERROR_REDO instead of AVERROR(EAGAIN).
9 years ago
Nicolas George
cb14d30240
lavf/mpeg: use FFERROR_REDO instead of AVERROR(EAGAIN).
9 years ago
Nicolas George
0bac7a436b
lavf/flvdec: use FFERROR_REDO instead of AVERROR(EAGAIN).
...
Fix trac ticket #5041 .
9 years ago
Nicolas George
3ab1e5a48c
lavf: add FFERROR_REDO to let demuxers return no packet.
9 years ago
Timo Teräs
64f7db554e
mpegencts: Fix overflow in cbr mode period calculations
...
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>
9 years ago
Martin Storsjö
1077d8c845
configure: Add -framework CoreVideo when building the avfoundation indev
...
This fixes builds with --disable-vda, which previously failed with
undefined references to CVImageBuffer* and CVPixelBuffer* functions.
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Paul B Mahol
fff7f2df31
avfilter/af_agate: change default for detection to rms
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
4a43e559e1
avfilter/af_sidechaincompress: kill init function
...
Should make addition of process_command easier.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
1b22bdf4e3
avfilter/af_agate: compile agate only when requested.
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
6907046130
avfilter/af_agate: add level_sc option for sidechaingate filter
...
Also correct usage of input gain for both filters.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
bd5afecdcb
avfilter: add sidechaingate filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
acc2347cf4
avfilter/af_agate: prepare for adding sidechain version
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Hendrik Leppkes
46db068c59
tests/api: Fix API test build on windows with --enable-shared
9 years ago
James Almer
9ac5beaa86
avformat/mpjpegdec: fix mixed declarations and code
9 years ago
Michael Niedermayer
b46dcd5209
avutil/timecode: Fix fps check
...
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>
9 years ago
Michael Niedermayer
0afdfbe116
avcodec/jpeg2000: fix type of arguments of tag_tree_size
...
Fixes: out of array read
Fixes: 36b8096fefab16c4c9326a508053e95c/signal_sigsegv_1d9ce18_3233_1a55196b018106dfabeace071a432d9e.r3d
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Ganesh Ajjanagadde
d64b6c3819
avfilter/af_flanger: use rint instead of floor hack
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
9 years ago
Ganesh Ajjanagadde
c6bea81acf
avfilter/vf_perspective: use lrint instead of floor hack
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
9 years ago
Ganesh Ajjanagadde
fa5d299496
avfilter/vsrc_mptestsrc: use lrint instead of floor hack
...
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>
9 years ago
Ganesh Ajjanagadde
1bb7db217d
avutil/crc: avoid needless space wastage of hardcoded crc table
...
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>
9 years ago
Michael Niedermayer
26379d4fdd
avcodec/vp3: ensure header is parsed successfully before tables
...
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>
9 years ago
Michael Niedermayer
ec7a3be11e
avformat/utils: Move end_time1 AV_NOPTS_VALUE Check after rescale
...
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>
9 years ago
Michael Niedermayer
d872643cfe
avformat/utils: Check AVFormatContext->duration in compute_chapters_end() 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>
9 years ago
Kylie McClain
bf12a81cc6
configure: Replace `pr` since it is not provided by busybox
...
While pr is a valid POSIX.1 command, its usage in configure
is a little borderline and is possible to replace it with
printf.
Bug-Id: 913
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Luca Barbato
5f3a081b42
avi: Spin out the logic to position to the next non-interleaved stream
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Luca Barbato
cb49bb10ca
build: Move -Wcast-qual to the extra_warnings
...
It amounts to about 1/2 of the warnings generated and does not help
spotting anything useful.
9 years ago
Michael Niedermayer
0fc61c6ab6
avi: Validate the stream-id for DV as well
...
Avoid false positives while syncing.
Bug-Id: ffmpeg/4086
Bug-Id: 879
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Luca Barbato
d017ed878a
avi: Use the correct data type
...
avio_tell returns an int64_t.
9 years ago
Paul B Mahol
b2517b02d9
avfilter/af_compand: do not clip; allow >0dB curve points
...
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>
9 years ago
Alex Agranovsky
259c71c199
avformat/mpjpeg: utilize MIME boundary value to detect start of new frame
...
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>
9 years ago
Alex Agranovsky
79103f2199
avformat/mpjpeg: allow processing of MIME parts without Content-Length header
...
Fixes ticket 5023
Signed-off-by: Alex Agranovsky <alex@sighthound.com>
9 years ago
Michael Niedermayer
97b8db334a
avutil/rational: Test av_rescale_rnd() with combinations of "special" values
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
f03c2ceec1
avutil/mathematics: return INT64_MIN (=AV_NOPTS_VALUE) from av_rescale_rnd() for overflows
...
Fixes integer overflow
Fixes: mozilla bug 1229167
Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
cd7524fdd1
avcodec/apedec: Check length in long_filter_high_3800()
...
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>
9 years ago
Ronald S. Bultje
1ac89869db
vp9: always keep s->bytesperpixel and ctx->pix_fmt in sync.
...
Fixes mozilla bug 1229128.
9 years ago
Andreas Cadhalpun
fb1bf4454e
git-howto: mention how to clone ffmpeg-web
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years ago
Tobias Rapp
bc517be6b0
Makefile: add cleanup of pkg-config files created by configure to distclean
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years ago
Carl Eugen Hoyos
d208acf2c8
lavf/rtpenc_jpeg: Less strict check for standard Huffman tables.
...
There can be one or more Huffman table segments DHT.
Reported-by: Andrey Utkin
9 years ago
Paul B Mahol
6670527d33
avfilter/af_stereotools: remove floor usage
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago