Michael Niedermayer
ff7f198d7f
vorbis: make sure ch is non zero before calling vorbis_residue_decode
This possibly makes part of the CVE-2011-3895 fix unneeded.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Chris Evans
f74ce3a60d
vorbis: An additional defense in the Vorbis codec.
BUG=101458
Review URL: http://codereview.chromium.org/8414025
Fixes second part of CVE-2011-3895
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Chris Evans
68226ed9ec
vorbis: Fix decoder bug.
BUG=101458
Review URL: http://codereview.chromium.org/8413019
This fixes part of 2011-3895
bigned-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
405e99bdfd
vorbisdec: Make sure blocksize is not set to an invalid value.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
6fcf2bb8af
vorbis: Fix last quarter of CVE-2011-3893
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Chris Evans
7149fce2ca
ogg: Avoid the possibility to read out-of-bounds of a static global array in Vorbis
decoding.
BUG=100543
Review URL: http://codereview.chromium.org/8365014
This fixes 25% of CVE-2011-3893
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Philippe Saint-Pierre
f0f2babca2
Fix possible infinite loop decoding als.
Reviewed-by: Thilo Borgmann
14 years ago
Ronald S. Bultje
89d26797f5
ulti: convert to new bytestream API.
14 years ago
Carl Eugen Hoyos
84ce58faf5
Replace deprecated FF_I_TYPE with AV_PICTURE_TYPE_I in v308 and yuv4.
Found-by: Paul B Mahol
14 years ago
Carl Eugen Hoyos
17edc370b2
yuv4 libquicktime packed 4:2:0 encoder and decoder.
Reviewed-by: Derek Buitenhuis
Reviewed-by: Paul B Mahol
14 years ago
Carl Eugen Hoyos
2754514787
v308 Quicktim Uncompressed 4:4:4 encoder and decoder.
Reviewed-by: Derek Buitenhuis
Reviewed-by: Paul B Mahol
14 years ago
Carl Eugen Hoyos
64e4f4836a
Add decoder for Avid 1:1 10-bit RGB Packer (AVrp).
Fixes ticket #525 .
Reviewed-by: Paul B Mahol
14 years ago
Diego Biurrun
00a1cdd264
Place some START_TIMER invocations in separate blocks.
This fixes compilation failures related to START_TIMER/STOP_TIMER macros and
-Werror=declaration-after-statement. START_TIMER declares variables and thus
may not be placed after statements outside of a new block.
14 years ago
John Brooks
d209c27b09
vc1dec: fix invalid memory access for small video dimensions
For small video dimensions, these calculations of the upper bound
for pixel access may have a negative result. Using an unsigned
comparison to bound a potentially negative value only works if
the greater operand is non-negative. Fixed by doing edge emulation
when the upper bound is probably negative, everywhere that this
pattern appears.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
14 years ago
John Brooks
aacf6b3a2f
rv34: fix invalid memory access for small video dimensions
For small video dimensions calculations of the upper bound for pixel
access may result in negative value. Using an unsigned comparison
works only if the greater operand is non-negative. This is fixed by
doing edge emulation explicitly for such conditions.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
14 years ago
Christophe GISQUET
98f24ecd6c
rv34: joint coefficient decoding and dequantization
Perform dequantization while decoding coefficients instead of performing it
on the entire coefficients buffer.
Since quantized coefficients are very sparse, this usually causes a small
speedup. Speedup of around 1% on Panda board compared to the removed here
neon code. Global speedup is probably around 3%.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
14 years ago
Michael Niedermayer
15b219fae9
jpegdec: Fix vlc table check for progressive jpegs.
Fixes Ticket834
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
400ba1d735
h264: return index in buffer on end-of-sequence.
Fixes hangs if the last packet contains an end-of-sequence NAL unit,
bug 158.
14 years ago
Diego Biurrun
54e68fb3b8
Merge some declarations and initializations.
This fixes compilation failures related to START_TIMER/STOP_TIMER macros and
-Werror=declaration-after-statement. START_TIMER declares variables and thus
may not be placed after statements outside of a new block.
14 years ago
Diego Biurrun
9dec55748c
cabac: drop unused and disabled get_cabac_u() / get_cabac_ueg() functions
14 years ago
Diego Biurrun
e451c26c5f
cabac: drop unused STRICT_LIMITS code branch
14 years ago
Justin Ruggles
9785082c15
libspeexenc: fix pts calculations for more than 1 frame per packet
14 years ago
Justin Ruggles
730280f90d
adxdec: clear eof flag and channel states when seeking
14 years ago
Justin Ruggles
754ebd1a5b
adxenc: check output buffer size before writing
14 years ago
Justin Ruggles
1fb47728cd
adxenc: use bytestream functions for header writing.
also add more documentation about the header structure
14 years ago
Justin Ruggles
656e606cae
adxenc: use BLOCK_SIZE and BLOCK_SAMPLES macros
14 years ago
Justin Ruggles
f1be41c63d
adxenc: use a loop to encode each channel
14 years ago
Justin Ruggles
6c117bd8e0
adxenc: remove unneeded loops
avctx->frame_size is 32, so that is how many samples we process per call.
14 years ago
Justin Ruggles
613668210b
adxenc: avoid stereo deinterleaving
14 years ago
Justin Ruggles
6b77f07074
adxenc: remove unnecessary setting of coded_frame->key_frame.
It is already set by avcodec_alloc_frame().
14 years ago
Justin Ruggles
cc40c056d0
adxenc: log an error message and return AVERROR(EINVAL) for invalid channels
14 years ago
Justin Ruggles
a85ab8ad45
adxenc: cosmetics: pretty-printing
14 years ago
Justin Ruggles
25edfc88e3
adxenc: change some data types
14 years ago
Justin Ruggles
c98c6e18d8
adxenc: remove unneeded log message
14 years ago
Justin Ruggles
e3d4f59f95
adxenc: remove unneeded comments
14 years ago
Michael Niedermayer
6429269096
wmall: remove ;;
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
001567c767
Set bits_per_coded_sample when encoding Y41P.
This allows mplayer -vc bt411 to decode files
encoded with FFmpeg.
Reviewed-by: Paul B Mahol
14 years ago
Michael Niedermayer
b024209b1f
adx_parser: rewrite.
The previous code ended in multiple different infinite
loops. See stl_ten_1_big.sfd as example with and without zzuf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Justin Ruggles
6fd075f180
adxdec: Validate channel count to fix a division by zero.
14 years ago
Michael Niedermayer
4f1a787744
adxdec: Do not require extradata.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Justin Ruggles
e49d21306a
alacdec: implement the 2-pass prediction type.
The reference encoder does not generate any streams using this, but the
reference decoder can handle it, so we should as well.
14 years ago
Justin Ruggles
bb63475aec
alacenc: implement the 2-pass prediction type.
This isn't used by the reference encoder, but it is supported by the decoder.
14 years ago
Justin Ruggles
149e1b0468
alacenc: do not generate invalid multi-channel ALAC files
14 years ago
Justin Ruggles
e76c7b856f
alacdec: fill in missing or guessed info about the extradata format.
Now that there is official documentation from Apple about this, we don't have
to guess anymore.
14 years ago
Kostya Shishkov
490dcda6b6
utvideo: proper median prediction for interlaced videos
14 years ago
Shitiz Garg
f37b4efe03
dca: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Aneesh Dogra
2e70b2de58
dct: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Daniel Verkamp
02e8f4272c
win32: detect number of CPUs using affinity
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Piotr Bandurski
912e75169b
Support 8bpp grayscale Sun Rasterfile images.
Fixes ticket #865 .
14 years ago
Diego Biurrun
418f066f8c
snow: Restore three mistakenly removed casts.
14 years ago