diff options
author | Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> | 2015-03-13 22:28:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-29 03:34:22 +0200 |
commit | f45f3f99a4d92099c710f9547abfd33da4af1d40 (patch) | |
tree | ae88682a8a7e09fce0916d50bbd7252556fbb3fe /libavformat/siff.c | |
parent | f11afe6bc654bb7a0c3c8f153680a7bba300d251 (diff) | |
download | ffmpeg-f45f3f99a4d92099c710f9547abfd33da4af1d40.tar.gz |
ac3dec_fixed: always use the USE_FIXED=1 variant of the AC3DecodeContext
The AC3DecodeContext has a float (USE_FIXED=0) and an integer
(USE_FIXED=1) variant, both of which can be present in the same binary.
This is not only very confusing, but it also breaks horribly, when one
variant is used by code expecting the other.
This currently happens, because eac3dec.c is only compiled for the float
variant, but also used from ac3dec_fixed.c, which uses the integer
variant.
The result is memory corruption, leading to crashes.
So compile eac3dec.c once for each variant and adapt it, so that it
works with the integer variant.
A loss of precission and scaling bug has been fixed by the committer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 7b05b5093ea67a3397b0c37cf398bab471e1ce2b)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/siff.c')
0 files changed, 0 insertions, 0 deletions