- 03 5月, 2012 13 次提交
-
-
由 Ronald S. Bultje 提交于
Progressive data is allocated later in decode_sof(), not allocating that data leads to NULL dereferences. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-
由 Michael Niedermayer 提交于
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
-
由 Ronald S. Bultje 提交于
Prevents crashes because the old check was incomplete. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-
由 Ronald S. Bultje 提交于
Fixes crashes in codepaths not covered by original checks. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-
由 Ronald S. Bultje 提交于
This prevents sample_rate/data_length from going negative, which caused various crashes and undefined behaviour further down. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-
由 Ronald S. Bultje 提交于
It was to signal that allocations are 16-byte aligned, but AVX requires 32-byte alignment, thus the check is no longer useful (and causes crashes).
-
由 Ronald S. Bultje 提交于
This properly synchronizes frame size changes between threads if subsequent threads abort decoding before frame size is initialized, i.e. it prevents the thread after that from ping-ponging back to the original value. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
-
由 Ronald S. Bultje 提交于
Fixes a compile error with clang at -O0.
-
由 Kostya Shishkov 提交于
-
由 Mashiat Sarker Shakkhar 提交于
Signed-off-by: NKostya Shishkov <kostya.shishkov@gmail.com>
-
由 Joakim Plate 提交于
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at> Signed-off-by: NDerek Buitenhuis <derek.buitenhuis@gmail.com>
-
由 Mans Rullgard 提交于
Starting with version 4.7, gcc properly supports unaligned memory accesses on ARM. Not using the inline asm with these compilers results in better code. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Mans Rullgard 提交于
With a dereferenced type-cast pointer as memory operand, gcc 4.6 and later will sometimes copy the data to a temporary location, the address of which is used as the operand value, if it thinks the target address might be misaligned. Using a pointer to a packed struct type instead does the right thing. The 16-bit case is special since the ldrh instruction addressing modes are limited compared to ldr. The "Uq" constraint produces a memory reference suitable for an ldrsb instruction, which supports the same addressing modes as ldrh. However, the restrictions appear to apply only when the operand addresses a single byte. The memory reference must thus be split into two operands each targeting one byte. Finally, the "Uq" constraint is only available in ARM mode. The Thumb-2 ldrh instruction supports most addressing modes so the normal "m" constraint can be used there. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
- 02 5月, 2012 6 次提交
-
-
由 Hendrik Leppkes 提交于
The index of the motion vector has to be checked before being multiplied by 2 for the array index. Signed-off-by: NMichael Niedermayer <michaelni@gmx.at> Signed-off-by: NDerek Buitenhuis <derek.buitenhuis@gmail.com>
-
由 Hendrik Leppkes 提交于
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at> Signed-off-by: NDerek Buitenhuis <derek.buitenhuis@gmail.com>
-
由 Mans Rullgard 提交于
ModeTab.fmode has only 3 elements, so indexing it with ftype in the initialier for 'size' is invalid when ftype == FT_PPC. This fixes crashes with gcc 4.8. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Justin Ruggles 提交于
-
由 Justin Ruggles 提交于
SDL only supports s16 sample format and a limited number of channel layouts. Some versions of SDL on some systems support 4-channel and 6-channel output, but it's safer overall to downmix any layout with more than 2 channels to stereo.
-
由 Reimar Döffinger 提交于
Signed-off-by: NReimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: NJustin Ruggles <justin.ruggles@gmail.com>
-
- 01 5月, 2012 8 次提交
-
-
由 Jakub Stachowski 提交于
Reviewed-by: NMashiat Sarker Shakkhar <mashiat.sarker@gmail.com> Signed-off-by: NMichael Niedermayer <michaelni@gmx.at> Signed-off-by: NKostya Shishkov <kostya.shishkov@gmail.com>
-
由 Mashiat Sarker Shakkhar 提交于
This fixes decoding of frames which span more than two packets. Tested with recit24.wma. Signed-off-by: NKostya Shishkov <kostya.shishkov@gmail.com>
-
由 Mans Rullgard 提交于
Indexing outside array limits is invalid and breaks with gcc 4.8. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Mans Rullgard 提交于
Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Mans Rullgard 提交于
The shift parameter was removed from this interface in 7e1ce6a6. This updates the Altivec implementation to match. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Mans Rullgard 提交于
To load unaligned vector data in the usual way, explicit vec_ld() should be used rather than dereferencing a pointer to a vector type. When the VSX extension is enabled, gcc may compile vector pointer dereferences using the VSX lxvw4x instruction instead of the lvx instruction typically used with Altivec/VMX. As the behaviour of these instructions with unaligned addresses differs, it is important that only lvx is used here. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Mans Rullgard 提交于
Allowing dsputil functions to assume the stride is a multiple of 16 even for smaller block sizes can simplify their implementation. This appears to be the only place this guarantee is not met. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Justin Ruggles 提交于
-
- 30 4月, 2012 5 次提交
-
-
由 Luca Barbato 提交于
Do return error if memory allocation or I/O fails.
-
由 Luca Barbato 提交于
Do not return 0 on error.
-
由 Hendrik Leppkes 提交于
Non perceptual color model that aims to have an increase effectiveness in compression like the normal YCbCr while having near-lossless/lossless mapping to RGB. Signed-off-by: NLuca Barbato <lu_zero@gentoo.org>
-
由 Luca Barbato 提交于
Apply coding style to the structs.
-
由 Ronald S. Bultje 提交于
Required because it's used in a call to imdct_half(), which is an AVX function. Signed-off-by: NDerek Buitenhuis <derek.buitenhuis@gmail.com>
-
- 29 4月, 2012 8 次提交
-
-
由 Mans Rullgard 提交于
Indexing outside arrays is invalid and breaks with gcc 4.8. Signed-off-by: NMans Rullgard <mans@mansr.com>
-
由 Christophe GISQUET 提交于
Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
-
由 Christophe Gisquet 提交于
Down from 95 kcycles to 93 (including all called functions). Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
-
由 Ronald S. Bultje 提交于
Force-inlining increases object size by 8kB and causes a 2% slowdown.
-
由 Christophe Gisquet 提交于
Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
-
由 Christophe Gisquet 提交于
is_block2 was always 0, so just remove it, and change accordingly the code. Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
-
由 Christophe Gisquet 提交于
120->100 cycles. Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
-
由 Christophe GISQUET 提交于
Commit 356ee8d7 caused the initial inversion. Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
-