Michael Niedermayer
cdf0877bc3
h264/cabac: check loop index
fix out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mirjana Vulin
2b6a8187a6
mips: optimization for float aac decoder (core module)
Signed-off-by: Mirjana Vulin <mvulin@mips.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9df9420dea
interplayvideo: Free previous frames on resolution changes.
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
9c50e69385
loco: fix rgba on big-endian
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a084884b62
flashsv: clear blocks array on reallocation
Fixes use of uninitialized data
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
984add64a4
wma: check byte_offset_bits
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4a2da83a78
dnxhddec: fix integer overflow / index check
Fixes out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b926cc7834
mss3: prevent AC state from becoming invalid in rac_normalise()
Fixes division by zero
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d2e0a276d5
msrledec: merge switches
More speedup and fixes 'may be used uninitialized in this function' warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
dbaae33c2c
msrledec: move loop into switch
speeds up code and allows more simplifications
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c2992b7053
msrledec: move output pointer test up
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d8a7c4958e
mpegvideo_enc: factor expression out
Fixes "warning: dc[0..5] may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
71f8d70456
dirac/x86: fix compile without yasm
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4d3d362549
dirac/x86: fix compile without inline asm
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
3c3d68a976
Fix 1bpp palettized png with width not a multiple of 8.
Fixes ticket #2204 .
13 years ago
Michael Niedermayer
dc8dd2f6e9
sanm: Check MV before using them.
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0dfc01c2bb
huffyuvdec: Skip len==0 cases
Fixes vlc decoding for hypothetical files that would contain such cases.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4420b41442
huffyuvdec: check for and propagate failures from inside generate_joint_tables()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f67a0d1152
huffyuvdec: Check init_vlc() return codes.
Prevents out of array writes
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ebe368d5d8
ac3enc: fix 'warning: block0 may be used uninitialized in this function'
The pointer is also initialized to NULL for safety.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
4e0bc996d9
bfin: unbreak compilation
Added a missing header file.
13 years ago
Paul B Mahol
8a6ae87b99
lavc: move deprecated audio_resample* bellow
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Anton Khirnov
76e74e4831
h264: remove obsolete comment.
13 years ago
Anton Khirnov
47318953dd
mpegvideo: remove some unused variables from Picture.
13 years ago
Anton Khirnov
231fd1ed39
utvideoenc/v410enc: do not set AVFrame.reference.
That field will be deprecated.
13 years ago
Anton Khirnov
e6b1c3bbe7
pthread: make ff_thread_release_buffer idempotent.
I.e. don't do anything on already released frames.
13 years ago
Anton Khirnov
aec50f79e7
rawdec: use AVPALETTE_SIZE instead of magic constants.
13 years ago
Anton Khirnov
e6da5d215b
mimic: remove a pointless cast.
13 years ago
Anton Khirnov
30d62507cd
mdec: return meaningful error codes.
13 years ago
Anton Khirnov
f713411d4c
mdec: cosmetics, reformat
13 years ago
Anton Khirnov
098eed95bc
mdec: merge mdec_common_init() into decode_init().
There is no point in keeping those two functions separate.
13 years ago
Anton Khirnov
f1c395944c
eatgv: use fixed-width types where appropriate.
13 years ago
Michael Niedermayer
11c99c78ba
h264: check the pixel format directly and force a reinit on mismatches.
The existing checks are insufficient to detect a pixel format
changes in case of some damaged streams.
Fixes inconsistency and later out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
f9a8eeb08c
iff/deep: fix rle32 on big-endian
Fixes ticket #2197 .
Signed-off-by: Peter Ross <pross@xvid.org>
13 years ago
Diego Biurrun
c59211b437
x86: Simplify some arch conditionals
13 years ago
Paul B Mahol
9efceaf1f7
takdec: switch to init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
3939b790f2
wmavoicedec: use the checked bitstream, reader
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
14c8ee00ff
vp3dec: move threads check out of header packet type check
Prevents reconfiguration with threads which is unsupported
and would bring the contexts into an inconsistent state.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
438ea561ad
bfin: Separate VP3 initialization code
13 years ago
Luca Barbato
f550583c00
bfin: update VP3 idct
The block must be set to 0.
13 years ago
Michael Niedermayer
94ef1667bb
dirac/x86: Fix handling blocksizes that are not a multiple of 4
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5c9cae7447
dirac: Only use MMX if MMX is available.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8c4aebb58d
qdm2: increase noise_table size
This prevents out of array reads. An alternative solution would be
to check the index but this would require several checks in the
inner loops
Yet another alternative would be to change the index reset logic
but this likely would introduce a difference to the binary decoder
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4484c722f6
alsdec/read_specific_config: check for init_get_bits failure
This also fixes a potential integer overflow
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
51e9d2dbc8
aasc: fix 16bpp on big-endian
13 years ago
Michael Niedermayer
834e9fb056
x86: hpeldsp: Fix a typo, use the right register
This makes the code actually work.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Luca Barbato
4839fbe2d1
shorten: fix array subscript is below array bounds warning
Incidentally fixes alpha builds.
13 years ago
Daniel Kang
05b0998f51
dsputil: Fix error by not using redzone and register name
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Michael Niedermayer
4ade824e1f
mjpegdec: rgb mode is specific for ljpeg, disable it for others.
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
73abc3a634
aacdec: check init_get_bits return
Also fixes an integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago