[FFmpeg-cvslog] r22723 - in trunk/libavcodec: mdct_tablegen.c mdct_tablegen.h qdm2_tablegen.c qdm2_tablegen.h

reimar subversion
Mon Mar 29 23:32:38 CEST 2010


Author: reimar
Date: Mon Mar 29 23:32:38 2010
New Revision: 22723

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

Modified:
   trunk/libavcodec/mdct_tablegen.c
   trunk/libavcodec/mdct_tablegen.h
   trunk/libavcodec/qdm2_tablegen.c
   trunk/libavcodec/qdm2_tablegen.h

Modified: trunk/libavcodec/mdct_tablegen.c
==============================================================================
--- trunk/libavcodec/mdct_tablegen.c	Mon Mar 29 23:01:45 2010	(r22722)
+++ trunk/libavcodec/mdct_tablegen.c	Mon Mar 29 23:32:38 2010	(r22723)
@@ -22,7 +22,6 @@
 
 #include <stdlib.h>
 #define CONFIG_HARDCODED_TABLES 0
-#define av_cold
 #define SINETABLE_CONST
 #define SINETABLE(size) \
     float ff_sine_##size[size]

Modified: trunk/libavcodec/mdct_tablegen.h
==============================================================================
--- trunk/libavcodec/mdct_tablegen.h	Mon Mar 29 23:01:45 2010	(r22722)
+++ trunk/libavcodec/mdct_tablegen.h	Mon Mar 29 23:32:38 2010	(r22723)
@@ -24,6 +24,7 @@
 // do not use libavutil/mathematics.h since this is compiled both
 // for the host and the target and config.h is only valid for the target
 #include <math.h>
+#include "../libavutil/attributes.h"
 
 #if !CONFIG_HARDCODED_TABLES
 SINETABLE(  32);

Modified: trunk/libavcodec/qdm2_tablegen.c
==============================================================================
--- trunk/libavcodec/qdm2_tablegen.c	Mon Mar 29 23:01:45 2010	(r22722)
+++ trunk/libavcodec/qdm2_tablegen.c	Mon Mar 29 23:32:38 2010	(r22723)
@@ -21,7 +21,6 @@
  */
 
 #include <stdlib.h>
-#define av_cold
 #define CONFIG_HARDCODED_TABLES 0
 #include "qdm2_tablegen.h"
 #include "tableprint.h"

Modified: trunk/libavcodec/qdm2_tablegen.h
==============================================================================
--- trunk/libavcodec/qdm2_tablegen.h	Mon Mar 29 23:01:45 2010	(r22722)
+++ trunk/libavcodec/qdm2_tablegen.h	Mon Mar 29 23:32:38 2010	(r22723)
@@ -25,6 +25,7 @@
 
 #include <stdint.h>
 #include <math.h>
+#include "../libavutil/attributes.h"
 
 #define SOFTCLIP_THRESHOLD 27600
 #define HARDCLIP_THRESHOLD 35716



More information about the ffmpeg-cvslog mailing list