[FFmpeg-cvslog] r16860 - in trunk/libavcodec: dct-test.c faxcompr.c faxcompr.h fdctref.c mlp.c mlp.h mlpdec.c mpc.c mpc.h rv34.c rv40.c sparc/dsputil_vis.c

diego subversion
Fri Jan 30 19:38:26 CET 2009


Author: diego
Date: Fri Jan 30 19:38:25 2009
New Revision: 16860

Log:
Add missing void keyword to parameterless function declarations.

Modified:
   trunk/libavcodec/dct-test.c
   trunk/libavcodec/faxcompr.c
   trunk/libavcodec/faxcompr.h
   trunk/libavcodec/fdctref.c
   trunk/libavcodec/mlp.c
   trunk/libavcodec/mlp.h
   trunk/libavcodec/mlpdec.c
   trunk/libavcodec/mpc.c
   trunk/libavcodec/mpc.h
   trunk/libavcodec/rv34.c
   trunk/libavcodec/rv40.c
   trunk/libavcodec/sparc/dsputil_vis.c

Modified: trunk/libavcodec/dct-test.c
==============================================================================
--- trunk/libavcodec/dct-test.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/dct-test.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -48,7 +48,7 @@ void *fast_memcpy(void *a, const void *b
 /* reference fdct/idct */
 void fdct(DCTELEM *block);
 void idct(DCTELEM *block);
-void init_fdct();
+void init_fdct(void);
 
 void ff_mmx_idct(DCTELEM *data);
 void ff_mmxext_idct(DCTELEM *data);

Modified: trunk/libavcodec/faxcompr.c
==============================================================================
--- trunk/libavcodec/faxcompr.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/faxcompr.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -95,7 +95,7 @@ static const uint8_t ccitt_group3_2d_len
 
 static VLC ccitt_vlc[2], ccitt_group3_2d_vlc;
 
-av_cold void ff_ccitt_unpack_init()
+av_cold void ff_ccitt_unpack_init(void)
 {
     static VLC_TYPE code_table1[528][2];
     static VLC_TYPE code_table2[648][2];

Modified: trunk/libavcodec/faxcompr.h
==============================================================================
--- trunk/libavcodec/faxcompr.h	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/faxcompr.h	Fri Jan 30 19:38:25 2009	(r16860)
@@ -33,7 +33,7 @@
 /**
  * initialize upacker code
  */
-void ff_ccitt_unpack_init();
+void ff_ccitt_unpack_init(void);
 
 /**
  * unpack data compressed with CCITT Group 3 1/2-D or Group 4 method

Modified: trunk/libavcodec/fdctref.c
==============================================================================
--- trunk/libavcodec/fdctref.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/fdctref.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -46,7 +46,7 @@ void fdct (short *block);
 /* private data */
 static double c[8][8]; /* transform coefficients */
 
-void init_fdct()
+void init_fdct(void)
 {
   int i, j;
   double s;

Modified: trunk/libavcodec/mlp.c
==============================================================================
--- trunk/libavcodec/mlp.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/mlp.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -46,7 +46,7 @@ static AVCRC crc_63[1024];
 static AVCRC crc_1D[1024];
 static AVCRC crc_2D[1024];
 
-void av_cold ff_mlp_init_crc()
+av_cold void ff_mlp_init_crc(void)
 {
     if (!crc_init) {
         av_crc_init(crc_63, 0,  8,   0x63, sizeof(crc_63));

Modified: trunk/libavcodec/mlp.h
==============================================================================
--- trunk/libavcodec/mlp.h	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/mlp.h	Fri Jan 30 19:38:25 2009	(r16860)
@@ -106,7 +106,7 @@ uint8_t ff_mlp_restart_checksum(const ui
  */
 uint8_t ff_mlp_calculate_parity(const uint8_t *buf, unsigned int buf_size);
 
-void ff_mlp_init_crc();
+void ff_mlp_init_crc(void);
 
 /** XOR four bytes into one. */
 static inline uint8_t xor_32_to_8(uint32_t value)

Modified: trunk/libavcodec/mlpdec.c
==============================================================================
--- trunk/libavcodec/mlpdec.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/mlpdec.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -141,7 +141,7 @@ static VLC huff_vlc[3];
 
 /** Initialize static data, constant between all invocations of the codec. */
 
-static av_cold void init_static()
+static av_cold void init_static(void)
 {
     INIT_VLC_STATIC(&huff_vlc[0], VLC_BITS, 18,
                 &ff_mlp_huffman_tables[0][0][1], 2, 1,

Modified: trunk/libavcodec/mpc.c
==============================================================================
--- trunk/libavcodec/mpc.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/mpc.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -36,7 +36,7 @@
 
 static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]);
 
-void ff_mpc_init()
+void ff_mpc_init(void)
 {
     ff_mpa_synth_init(mpa_window);
 }

Modified: trunk/libavcodec/mpc.h
==============================================================================
--- trunk/libavcodec/mpc.h	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/mpc.h	Fri Jan 30 19:38:25 2009	(r16860)
@@ -70,7 +70,7 @@ typedef struct {
     DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]);
 } MPCContext;
 
-void ff_mpc_init();
+void ff_mpc_init(void);
 void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, void *dst);
 
 #endif /* AVCODEC_MPC_H */

Modified: trunk/libavcodec/rv34.c
==============================================================================
--- trunk/libavcodec/rv34.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/rv34.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -101,7 +101,7 @@ static void rv34_gen_vlc(const uint8_t *
 /**
  * Initialize all tables.
  */
-static av_cold void rv34_init_tables()
+static av_cold void rv34_init_tables(void)
 {
     int i, j, k;
 

Modified: trunk/libavcodec/rv40.c
==============================================================================
--- trunk/libavcodec/rv40.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/rv40.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -40,7 +40,7 @@ static VLC ptype_vlc[NUM_PTYPE_VLCS], bt
 /**
  * Initialize all tables.
  */
-static av_cold void rv40_init_tables()
+static av_cold void rv40_init_tables(void)
 {
     int i;
 

Modified: trunk/libavcodec/sparc/dsputil_vis.c
==============================================================================
--- trunk/libavcodec/sparc/dsputil_vis.c	Fri Jan 30 18:15:08 2009	(r16859)
+++ trunk/libavcodec/sparc/dsputil_vis.c	Fri Jan 30 19:38:25 2009	(r16860)
@@ -3988,7 +3988,7 @@ static void MC_avg_no_round_xy_8_vis (ui
 #define ACCEL_SPARC_VIS 1
 #define ACCEL_SPARC_VIS2 2
 
-static int vis_level ()
+static int vis_level(void)
 {
     int accel = 0;
     accel |= ACCEL_SPARC_VIS;




More information about the ffmpeg-cvslog mailing list