Michael Niedermayer
6433b393ba
avcodec/aacps: fix number of bands used with ipd/opd
...
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f861d16355f_1664_File1_fixed.aac
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
0ba8ba165b
aacps: Adjust some const qualifiers to suppress warnings
11 years ago
Michael Niedermayer
66e9716a36
aacps: correct opdipd code to match spec
...
This fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
218aefce44
dsputil: Move LOCAL_ALIGNED macros to libavutil
12 years ago
Michael Niedermayer
991e23519a
aacps: check iid/icc_par more completely.
...
Fixes global out of array read.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9f36ec6aa9
aacps: fix order of operands of ipdopd_reset().
...
With the current implementation this is purely cosmetic
Fixes CID732285
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0018aa9013
aacps: loose self assignment
...
Fixes CID604123
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Mans Rullgard
47d18d5354
aacps: align some arrays
...
This is required for SIMD optimisations.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
bf1945af30
aacps: move some loops to function pointers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Alex Converse
a237b38021
aac: Reset PS parameters on header decode failure.
...
If the next header frame codes zero envelopes the previous frame's
values will be used. Consequently the invalid values must be cleared.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
9de3cbc182
aacps: Add missing newline in error message.
13 years ago
Diego Biurrun
0249478756
doxygen: fix wrong comment syntax, //< vs. ///<
14 years ago
Mans Rullgard
e5902d60ce
aacps: skip some memcpy() if src and dst would be equal
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
d0fcf39f0c
doxygen: Move function documentation into the macro generating the function.
...
This fixes a bunch of related warnings where Doxygen assumed that the
documentation belonged to the macro and not the function.
14 years ago
Diego Biurrun
24c9babaaf
doxygen: Fix parameter names to match the function prototypes.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Alex Converse
fd6eb4a06c
Move Parametric Stereo related ps* files to aacps*.
...
Originally committed as revision 23720 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
890fe85f26
Cosmetics whitespace.
...
Originally committed as revision 23712 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
e90e1f558a
psdec: IPD/OPD reset is no longer needed by the context initializer.
...
Originally committed as revision 23670 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
5e071f5339
psdec: Simplify filter addressing by incrementing the "in" pointer.
...
Originally committed as revision 23669 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
c6b0947171
psdec: Replace a division with a shift.
...
Originally committed as revision 23667 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
3fa1a93265
Rename PS bitstream reading functions to have a read_ prefix.
...
Originally committed as revision 23666 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
fd16564b04
Cosmetics: whitespace.
...
Originally committed as revision 23663 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
0d6b3269ea
Use memcpy() where appropriate in PS stereo processing remapping.
...
Originally committed as revision 23662 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
d23077af56
Allow PS envelope fixup when ps->num_env_old <= 1.
...
It is already rejected by the "source >= 0 && source != ps->num_env" 0 envelope
case and is perfectly legally for the suppressed final envelope case.
Originally committed as revision 23661 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
78ba1d39d9
Document the PS_BASELINE define.
...
Originally committed as revision 23659 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
284b041b1c
Remove iid_mode from the PS context.
...
Originally committed as revision 23658 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
1076b0d093
psdec: Factorize iid/icc/ipd/opd parameter bitstream reading.
...
Originally committed as revision 23652 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Alex Converse
a20639017b
Add HE-AAC v2 support to the AAC decoder.
...
Originally committed as revision 23647 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago