[PATCH] libaf: constify infos

Lauri Kasanen <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
Hi,

This patch moves 1.5kb of data to rodata.

- Lauri

_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
const_libaf.patch (text/plain, 9.2 KB)
Index: libaf/af_bs2b.c
===================================================================
--- libaf/af_bs2b.c	(revision 37696)
+++ libaf/af_bs2b.c	(working copy)
@@ -265,7 +265,7 @@
 }
 
 /// Description of this filter
-af_info_t af_info_bs2b = {
+const af_info_t af_info_bs2b = {
     "Bauer stereophonic-to-binaural audio filter",
     "bs2b",
     "Andrew Savchenko",
Index: libaf/af_center.c
===================================================================
--- libaf/af_center.c	(revision 37696)
+++ libaf/af_center.c	(working copy)
@@ -121,7 +121,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_center = {
+const af_info_t af_info_center = {
     "Audio filter for adding a center channel",
     "center",
     "Alex Beregszaszi",
Index: libaf/af_channels.c
===================================================================
--- libaf/af_channels.c	(revision 37696)
+++ libaf/af_channels.c	(working copy)
@@ -298,7 +298,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_channels = {
+const af_info_t af_info_channels = {
   "Insert or remove channels",
   "channels",
   "Anders",
Index: libaf/af_comp.c
===================================================================
--- libaf/af_comp.c	(revision 37696)
+++ libaf/af_comp.c	(working copy)
@@ -159,7 +159,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_comp = {
+const af_info_t af_info_comp = {
     "Compressor/expander audio filter",
     "comp",
     "Anders",
Index: libaf/af_delay.c
===================================================================
--- libaf/af_delay.c	(revision 37696)
+++ libaf/af_delay.c	(working copy)
@@ -192,7 +192,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_delay = {
+const af_info_t af_info_delay = {
     "Delay audio filter",
     "delay",
     "Anders",
Index: libaf/af_dummy.c
===================================================================
--- libaf/af_dummy.c	(revision 37696)
+++ libaf/af_dummy.c	(working copy)
@@ -67,7 +67,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_dummy = {
+const af_info_t af_info_dummy = {
     "dummy",
     "dummy",
     "Anders",
Index: libaf/af_equalizer.c
===================================================================
--- libaf/af_equalizer.c	(revision 37696)
+++ libaf/af_equalizer.c	(working copy)
@@ -240,7 +240,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_equalizer = {
+const af_info_t af_info_equalizer = {
   "Equalizer audio filter",
   "equalizer",
   "Anders",
Index: libaf/af_export.c
===================================================================
--- libaf/af_export.c	(revision 37696)
+++ libaf/af_export.c	(working copy)
@@ -264,7 +264,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_export = {
+const af_info_t af_info_export = {
     "Sound export filter",
     "export",
     "Anders; Gustavo Sverzut Barbieri <[email protected]>",
Index: libaf/af_extrastereo.c
===================================================================
--- libaf/af_extrastereo.c	(revision 37696)
+++ libaf/af_extrastereo.c	(working copy)
@@ -148,7 +148,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_extrastereo = {
+const af_info_t af_info_extrastereo = {
     "Increase difference between audio channels",
     "extrastereo",
     "Alex Beregszaszi & Pierre Lombard",
Index: libaf/af_format.c
===================================================================
--- libaf/af_format.c	(revision 37696)
+++ libaf/af_format.c	(working copy)
@@ -336,7 +336,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_format = {
+const af_info_t af_info_format = {
   "Sample format conversion",
   "format",
   "Anders",
Index: libaf/af_gate.c
===================================================================
--- libaf/af_gate.c	(revision 37696)
+++ libaf/af_gate.c	(working copy)
@@ -154,7 +154,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_gate = {
+const af_info_t af_info_gate = {
     "Noise gate audio filter",
     "gate",
     "Anders",
Index: libaf/af_hrtf.c
===================================================================
--- libaf/af_hrtf.c	(revision 37696)
+++ libaf/af_hrtf.c	(working copy)
@@ -666,7 +666,7 @@
 }
 
 /* Description of this filter */
-af_info_t af_info_hrtf = {
+const af_info_t af_info_hrtf = {
     "HRTF Headphone",
     "hrtf",
     "ylai",
Index: libaf/af_karaoke.c
===================================================================
--- libaf/af_karaoke.c	(revision 37696)
+++ libaf/af_karaoke.c	(working copy)
@@ -88,7 +88,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_karaoke = {
+const af_info_t af_info_karaoke = {
 	"Simple karaoke/voice-removal audio filter",
 	"karaoke",
 	"Reynaldo H. Verdejo Pinochet",
Index: libaf/af_ladspa.c
===================================================================
--- libaf/af_ladspa.c	(revision 37696)
+++ libaf/af_ladspa.c	(working copy)
@@ -104,7 +104,7 @@
 
 /* Description */
 
-af_info_t af_info_ladspa = {
+const af_info_t af_info_ladspa = {
     "LADSPA plugin loader",
     "ladspa",
     "Ivo van Poorten",
Index: libaf/af_lavcac3enc.c
===================================================================
--- libaf/af_lavcac3enc.c	(revision 37696)
+++ libaf/af_lavcac3enc.c	(working copy)
@@ -289,7 +289,7 @@
     return AF_OK;
 }
 
-af_info_t af_info_lavcac3enc = {
+const af_info_t af_info_lavcac3enc = {
     "runtime encode to ac3 using libavcodec",
     "lavcac3enc",
     "Ulion",
Index: libaf/af_lavcresample.c
===================================================================
--- libaf/af_lavcresample.c	(revision 37696)
+++ libaf/af_lavcresample.c	(working copy)
@@ -183,7 +183,7 @@
   return AF_OK;
 }
 
-af_info_t af_info_lavcresample = {
+const af_info_t af_info_lavcresample = {
   "Sample frequency conversion using libavcodec",
   "lavcresample",
   "Michael Niedermayer",
Index: libaf/af_pan.c
===================================================================
--- libaf/af_pan.c	(revision 37696)
+++ libaf/af_pan.c	(working copy)
@@ -202,7 +202,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_pan = {
+const af_info_t af_info_pan = {
     "Panning audio filter",
     "pan",
     "Anders",
Index: libaf/af_resample.c
===================================================================
--- libaf/af_resample.c	(revision 37696)
+++ libaf/af_resample.c	(working copy)
@@ -386,7 +386,7 @@
 }
 
 // Description of this plugin
-af_info_t af_info_resample = {
+const af_info_t af_info_resample = {
   "Sample frequency conversion",
   "resample",
   "Anders",
Index: libaf/af_scaletempo.c
===================================================================
--- libaf/af_scaletempo.c	(revision 37696)
+++ libaf/af_scaletempo.c	(working copy)
@@ -564,7 +564,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_scaletempo = {
+const af_info_t af_info_scaletempo = {
   "Scale audio tempo while maintaining pitch",
   "scaletempo",
   "Robert Juliano",
Index: libaf/af_sinesuppress.c
===================================================================
--- libaf/af_sinesuppress.c	(revision 37696)
+++ libaf/af_sinesuppress.c	(working copy)
@@ -175,7 +175,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_sinesuppress = {
+const af_info_t af_info_sinesuppress = {
     "Sine Suppress",
     "sinesuppress",
     "Michael Niedermayer",
Index: libaf/af_stats.c
===================================================================
--- libaf/af_stats.c	(revision 37696)
+++ libaf/af_stats.c	(working copy)
@@ -150,7 +150,7 @@
     return AF_OK;
 }
 
-af_info_t af_info_stats = {
+const af_info_t af_info_stats = {
     "Statistics audio filter",
     "stats",
     "Nicolas George",
Index: libaf/af_sub.c
===================================================================
--- libaf/af_sub.c	(revision 37696)
+++ libaf/af_sub.c	(working copy)
@@ -180,7 +180,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_sub = {
+const af_info_t af_info_sub = {
     "Audio filter for adding a sub-base channel",
     "sub",
     "Anders",
Index: libaf/af_surround.c
===================================================================
--- libaf/af_surround.c	(revision 37696)
+++ libaf/af_surround.c	(working copy)
@@ -263,7 +263,7 @@
   return AF_OK;
 }
 
-af_info_t af_info_surround =
+const af_info_t af_info_surround =
 {
         "Surround decoder filter",
         "surround",
Index: libaf/af_sweep.c
===================================================================
--- libaf/af_sweep.c	(revision 37696)
+++ libaf/af_sweep.c	(working copy)
@@ -93,7 +93,7 @@
   return AF_OK;
 }
 
-af_info_t af_info_sweep = {
+const af_info_t af_info_sweep = {
   "sine sweep",
   "sweep",
   "Michael Niedermayer",
Index: libaf/af_volnorm.c
===================================================================
--- libaf/af_volnorm.c	(revision 37696)
+++ libaf/af_volnorm.c	(working copy)
@@ -344,7 +344,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_volnorm = {
+const af_info_t af_info_volnorm = {
     "Volume normalizer filter",
     "volnorm",
     "Alex Beregszaszi & Pierre Lombard",
Index: libaf/af_volume.c
===================================================================
--- libaf/af_volume.c	(revision 37696)
+++ libaf/af_volume.c	(working copy)
@@ -221,7 +221,7 @@
 }
 
 // Description of this filter
-af_info_t af_info_volume = {
+const af_info_t af_info_volume = {
     "Volume control audio filter",
     "volume",
     "Anders",
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.