History

Include appropriate header in table generators instead of using a dummy av_cold define.

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

Reimar Döffinger committed 16 years ago

Commit 30ad1a61 parent 4f798a64 files · +2 −2Browse files

Unified · Split

4 files
  1. libavcodec/mdct_tablegen.c +0 −1
  2. libavcodec/mdct_tablegen.h +1 −0
  3. libavcodec/qdm2_tablegen.c +0 −1
  4. libavcodec/qdm2_tablegen.h +1 −0
libavcodec/mdct_tablegen.c+0−1
@@ -22,7 +22,6 @@ · 21 unmodified lines
2222
2323 #include <stdlib.h>
2424 #define CONFIG_HARDCODED_TABLES 0
25−#define av_cold
2625 #define SINETABLE_CONST
2726 #define SINETABLE(size) \
2827 float ff_sine_##size[size]
libavcodec/mdct_tablegen.h+1−0
@@ -24,6 +24,7 @@ · 23 unmodified lines
2424 // do not use libavutil/mathematics.h since this is compiled both
2525 // for the host and the target and config.h is only valid for the target
2626 #include <math.h>
27+#include "../libavutil/attributes.h"
2728
2829 #if !CONFIG_HARDCODED_TABLES
2930 SINETABLE( 32);
libavcodec/qdm2_tablegen.c+0−1
@@ -21,7 +21,6 @@ · 20 unmodified lines
2121 */
2222
2323 #include <stdlib.h>
24−#define av_cold
2524 #define CONFIG_HARDCODED_TABLES 0
2625 #include "qdm2_tablegen.h"
2726 #include "tableprint.h"
libavcodec/qdm2_tablegen.h+1−0
@@ -25,6 +25,7 @@ · 24 unmodified lines
2525
2626 #include <stdint.h>
2727 #include <math.h>
28+#include "../libavutil/attributes.h"
2829
2930 #define SOFTCLIP_THRESHOLD 27600
3031 #define HARDCLIP_THRESHOLD 35716

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