[FFmpeg-cvslog] r12457 - trunk/libavcodec/mdct.c
mru
subversion
Sun Mar 16 14:15:42 CET 2008
Author: mru
Date: Sun Mar 16 14:15:42 2008
New Revision: 12457
Log:
improve precision in mdct.c using double for some temporaries
Modified:
trunk/libavcodec/mdct.c
Modified: trunk/libavcodec/mdct.c
==============================================================================
--- trunk/libavcodec/mdct.c (original)
+++ trunk/libavcodec/mdct.c Sun Mar 16 14:15:42 2008
@@ -54,7 +54,7 @@ void ff_kbd_window_init(float *window, f
int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
{
int n, n4, i;
- float alpha;
+ double alpha;
memset(s, 0, sizeof(*s));
n = 1 << nbits;
@@ -85,10 +85,10 @@ int ff_mdct_init(MDCTContext *s, int nbi
/* complex multiplication: p = a * b */
#define CMUL(pre, pim, are, aim, bre, bim) \
{\
- float _are = (are);\
- float _aim = (aim);\
- float _bre = (bre);\
- float _bim = (bim);\
+ double _are = (are);\
+ double _aim = (aim);\
+ double _bre = (bre);\
+ double _bim = (bim);\
(pre) = _are * _bre - _aim * _bim;\
(pim) = _are * _bim + _aim * _bre;\
}
More information about the ffmpeg-cvslog
mailing list