History

1.0 and the resulting exactly representable value must be marked as float as well, gcc is hopelessly trash.

Originally committed as revision 23119 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer committed 16 years ago

Commit 40914d91 parent 0628f3e1 file · +1 −1Browse files

Unified · Split

libavcodec/mpegaudiodec.c+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #include "mathops.h"
4141
4242 #if CONFIG_FLOAT
43−# define SHR(a,b) ((a)*(1.0/(1<<(b))))
43+# define SHR(a,b) ((a)*(1.0f/(1<<(b))))
4444 # define compute_antialias compute_antialias_float
4545 # define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
4646 # define FIXR(x) ((float)(x))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t