changeset 30504:cc27da5d7286

Mark all ad_info_t/vd_info_t structure declarations as const.
author diego
date Fri, 12 Feb 2010 16:29:34 +0000
parents 53be04353b90
children 580319e640b3
files libmpcodecs/ad_acm.c libmpcodecs/ad_alaw.c libmpcodecs/ad_dk3adpcm.c libmpcodecs/ad_dmo.c libmpcodecs/ad_dshow.c libmpcodecs/ad_dvdpcm.c libmpcodecs/ad_faad.c libmpcodecs/ad_ffmpeg.c libmpcodecs/ad_hwac3.c libmpcodecs/ad_hwmpa.c libmpcodecs/ad_imaadpcm.c libmpcodecs/ad_liba52.c libmpcodecs/ad_libdca.c libmpcodecs/ad_libdv.c libmpcodecs/ad_libmad.c libmpcodecs/ad_libvorbis.c libmpcodecs/ad_mp3lib.c libmpcodecs/ad_mpc.c libmpcodecs/ad_msadpcm.c libmpcodecs/ad_msgsm.c libmpcodecs/ad_pcm.c libmpcodecs/ad_qtaudio.c libmpcodecs/ad_realaud.c libmpcodecs/ad_sample.c libmpcodecs/ad_speex.c libmpcodecs/ad_twin.c libmpcodecs/vd_dmo.c libmpcodecs/vd_dshow.c libmpcodecs/vd_ffmpeg.c libmpcodecs/vd_hmblck.c libmpcodecs/vd_ijpg.c libmpcodecs/vd_libdv.c libmpcodecs/vd_libmpeg2.c libmpcodecs/vd_lzo.c libmpcodecs/vd_mpegpes.c libmpcodecs/vd_mpng.c libmpcodecs/vd_mtga.c libmpcodecs/vd_null.c libmpcodecs/vd_qtvideo.c libmpcodecs/vd_raw.c libmpcodecs/vd_realvid.c libmpcodecs/vd_sgi.c libmpcodecs/vd_theora.c libmpcodecs/vd_vfw.c libmpcodecs/vd_xanim.c libmpcodecs/vd_xvid4.c libmpcodecs/vd_zrmjpeg.c
diffstat 47 files changed, 47 insertions(+), 47 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_acm.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_acm.c	Fri Feb 12 16:29:34 2010 +0000
@@ -29,7 +29,7 @@
 #include "ad_internal.h"
 #include "osdep/timer.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Win32/ACM decoders",
 	"acm",
--- a/libmpcodecs/ad_alaw.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_alaw.c	Fri Feb 12 16:29:34 2010 +0000
@@ -23,7 +23,7 @@
 #include "config.h"
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"aLaw/uLaw audio decoder",
 	"alaw",
--- a/libmpcodecs/ad_dk3adpcm.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_dk3adpcm.c	Fri Feb 12 16:29:34 2010 +0000
@@ -36,7 +36,7 @@
 #include "mpbswap.h"
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Duck Corp. DK3 ADPCM decoder",
 	"dk3adpcm",
--- a/libmpcodecs/ad_dmo.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_dmo.c	Fri Feb 12 16:29:34 2010 +0000
@@ -27,7 +27,7 @@
 #include "ad_internal.h"
 #include "libaf/reorder_ch.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Win32/DMO decoders",
 	"dmo",
--- a/libmpcodecs/ad_dshow.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_dshow.c	Fri Feb 12 16:29:34 2010 +0000
@@ -26,7 +26,7 @@
 
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Win32/DirectShow decoders",
 	"dshow",
--- a/libmpcodecs/ad_dvdpcm.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_dvdpcm.c	Fri Feb 12 16:29:34 2010 +0000
@@ -25,7 +25,7 @@
 #include "help_mp.h"
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Uncompressed DVD/VOB LPCM audio decoder",
 	"dvdpcm",
--- a/libmpcodecs/ad_faad.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_faad.c	Fri Feb 12 16:29:34 2010 +0000
@@ -28,7 +28,7 @@
 #include "ad_internal.h"
 #include "libaf/reorder_ch.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"AAC (MPEG2/4 Advanced Audio Coding)",
 	"faad",
--- a/libmpcodecs/ad_ffmpeg.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Fri Feb 12 16:29:34 2010 +0000
@@ -29,7 +29,7 @@
 
 #include "mpbswap.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"FFmpeg/libavcodec audio decoders",
 	"ffmpeg",
--- a/libmpcodecs/ad_hwac3.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_hwac3.c	Fri Feb 12 16:29:34 2010 +0000
@@ -38,7 +38,7 @@
 
 static int isdts = -1;
 
-static ad_info_t info =
+static const ad_info_t info =
 {
   "AC3/DTS pass-through S/PDIF",
   "hwac3",
--- a/libmpcodecs/ad_hwmpa.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_hwmpa.c	Fri Feb 12 16:29:34 2010 +0000
@@ -33,7 +33,7 @@
 
 //based on ad_hwac3.c and ad_libmad.c
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"MPEG audio pass-through (fake decoder)",
 	"hwmpa",
--- a/libmpcodecs/ad_imaadpcm.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_imaadpcm.c	Fri Feb 12 16:29:34 2010 +0000
@@ -79,7 +79,7 @@
 // clamp a number above 16
 #define CLAMP_ABOVE_16(x)  if (x < 16) x = 16;
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"IMA ADPCM audio decoder",
 	"imaadpcm",
--- a/libmpcodecs/ad_liba52.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_liba52.c	Fri Feb 12 16:29:34 2010 +0000
@@ -63,7 +63,7 @@
 float a52_drc_level = 1.0;
 static int a52_drc_action = DRC_NO_ACTION;
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"AC3 decoding with liba52",
 	"liba52",
--- a/libmpcodecs/ad_libdca.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_libdca.c	Fri Feb 12 16:29:34 2010 +0000
@@ -32,7 +32,7 @@
 
 #include <dts.h>
 
-static ad_info_t info =
+static const ad_info_t info =
 {
     "DTS decoding with libdca",
     "libdca",
--- a/libmpcodecs/ad_libdv.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_libdv.c	Fri Feb 12 16:29:34 2010 +0000
@@ -38,7 +38,7 @@
 
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Raw DV Audio Decoder",
 	"libdv",
--- a/libmpcodecs/ad_libmad.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_libmad.c	Fri Feb 12 16:29:34 2010 +0000
@@ -24,7 +24,7 @@
 
 #include "ad_internal.h"
 
-static ad_info_t info =  {
+static const ad_info_t info =  {
 	"libmad mpeg audio decoder",
 	"libmad",
 	"A'rpi",
--- a/libmpcodecs/ad_libvorbis.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_libvorbis.c	Fri Feb 12 16:29:34 2010 +0000
@@ -26,7 +26,7 @@
 #include "ad_internal.h"
 #include "libaf/reorder_ch.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Ogg/Vorbis audio decoder",
 #ifdef CONFIG_TREMOR
--- a/libmpcodecs/ad_mp3lib.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_mp3lib.c	Fri Feb 12 16:29:34 2010 +0000
@@ -24,7 +24,7 @@
 
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"MPEG layer-2, layer-3",
 	"mp3lib",
--- a/libmpcodecs/ad_mpc.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_mpc.c	Fri Feb 12 16:29:34 2010 +0000
@@ -32,7 +32,7 @@
 #include "libaf/af_format.h"
 #include "libvo/fastmemcpy.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Musepack audio decoder",
 	"mpcdec",
--- a/libmpcodecs/ad_msadpcm.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_msadpcm.c	Fri Feb 12 16:29:34 2010 +0000
@@ -34,7 +34,7 @@
 #include "mpbswap.h"
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"MS ADPCM audio decoder",
 	"msadpcm",
--- a/libmpcodecs/ad_msgsm.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_msgsm.c	Fri Feb 12 16:29:34 2010 +0000
@@ -23,7 +23,7 @@
 #include "config.h"
 #include "ad_internal.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"native GSM/MSGSM audio decoder",
 	"msgsm",
--- a/libmpcodecs/ad_pcm.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_pcm.c	Fri Feb 12 16:29:34 2010 +0000
@@ -25,7 +25,7 @@
 #include "libaf/af_format.h"
 #include "libaf/reorder_ch.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
 	"Uncompressed PCM audio decoder",
 	"pcm",
--- a/libmpcodecs/ad_qtaudio.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_qtaudio.c	Fri Feb 12 16:29:34 2010 +0000
@@ -33,7 +33,7 @@
 #include "loader/wine/windef.h"
 #endif
 
-static ad_info_t info =  {
+static const ad_info_t info =  {
 	"QuickTime Audio Decoder",
 	"qtaudio",
 	"A'rpi",
--- a/libmpcodecs/ad_realaud.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_realaud.c	Fri Feb 12 16:29:34 2010 +0000
@@ -31,7 +31,7 @@
 #include "ad_internal.h"
 #include "loader/wine/windef.h"
 
-static ad_info_t info =  {
+static const ad_info_t info =  {
 	"RealAudio decoder",
 	"realaud",
 	"Alex Beregszaszi",
--- a/libmpcodecs/ad_sample.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_sample.c	Fri Feb 12 16:29:34 2010 +0000
@@ -25,7 +25,7 @@
 #include "config.h"
 #include "ad_internal.h"
 
-static ad_info_t info =  {
+static const ad_info_t info =  {
 	"Sample audio decoder",  // name of the driver
 	"sample",    // driver name. should be the same as filename without ad_
 	"A'rpi",     // writer/maintainer of _this_ file
--- a/libmpcodecs/ad_speex.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_speex.c	Fri Feb 12 16:29:34 2010 +0000
@@ -28,7 +28,7 @@
 #include <speex/speex_header.h>
 #include "ad_internal.h"
 
-static ad_info_t info = {
+static const ad_info_t info = {
   "Speex audio decoder",
   "speex",
   "Reimar Döffinger",
--- a/libmpcodecs/ad_twin.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/ad_twin.c	Fri Feb 12 16:29:34 2010 +0000
@@ -29,7 +29,7 @@
 
 #include "help_mp.h"
 
-static ad_info_t info =
+static const ad_info_t info =
 {
     "TWinVQ decoder",
     "vqf",
--- a/libmpcodecs/vd_dmo.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_dmo.c	Fri Feb 12 16:29:34 2010 +0000
@@ -29,7 +29,7 @@
 
 #include "loader/dmo/DMO_VideoDecoder.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"DMO video codecs",
 	"dmo",
 	"A'rpi",
--- a/libmpcodecs/vd_dshow.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_dshow.c	Fri Feb 12 16:29:34 2010 +0000
@@ -29,7 +29,7 @@
 
 #include "loader/dshow/DS_VideoDecoder.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"DirectShow video codecs",
 	"dshow",
 	"A'rpi",
--- a/libmpcodecs/vd_ffmpeg.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Fri Feb 12 16:29:34 2010 +0000
@@ -33,7 +33,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
     "FFmpeg's libavcodec codec family",
     "ffmpeg",
     "A'rpi",
--- a/libmpcodecs/vd_hmblck.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_hmblck.c	Fri Feb 12 16:29:34 2010 +0000
@@ -26,7 +26,7 @@
 
 #define TEMP_BUF_SIZE (720*576)
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"Hauppauge Macroblock/NV12/NV21 Decoder",
 	"hmblck",
 	"Alex <d18c7db@hotmail.com>, A'rpi, Alex Beregszaszi",
--- a/libmpcodecs/vd_ijpg.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_ijpg.c	Fri Feb 12 16:29:34 2010 +0000
@@ -33,7 +33,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"JPEG Images decoder",
 	"ijpg",
 	"Pontscho",
--- a/libmpcodecs/vd_libdv.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_libdv.c	Fri Feb 12 16:29:34 2010 +0000
@@ -36,7 +36,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info =
+static const vd_info_t info =
 {
 	"Raw DV Video Decoder",
 	"libdv",
--- a/libmpcodecs/vd_libmpeg2.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Fri Feb 12 16:29:34 2010 +0000
@@ -27,7 +27,7 @@
 
 //#undef MPEG12_POSTPROC
 
-static vd_info_t info =
+static const vd_info_t info =
 {
 	"libmpeg2 MPEG 1/2 Video decoder",
 	"libmpeg2",
--- a/libmpcodecs/vd_lzo.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_lzo.c	Fri Feb 12 16:29:34 2010 +0000
@@ -27,7 +27,7 @@
 
 #define MOD_NAME "DecLZO"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"LZO compressed Video",
 	"lzo",
 	"Tilmann Bitterberg",
--- a/libmpcodecs/vd_mpegpes.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_mpegpes.c	Fri Feb 12 16:29:34 2010 +0000
@@ -25,7 +25,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info =
+static const vd_info_t info =
 {
 	"MPEG 1/2 Video passthrough",
 	"mpegpes",
--- a/libmpcodecs/vd_mpng.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_mpng.c	Fri Feb 12 16:29:34 2010 +0000
@@ -30,7 +30,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"PNG Images decoder",
 	"mpng",
 	"A'rpi",
--- a/libmpcodecs/vd_mtga.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_mtga.c	Fri Feb 12 16:29:34 2010 +0000
@@ -34,7 +34,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info =
+static const vd_info_t info =
 {
     "TGA Images decoder",
     "mtga",
--- a/libmpcodecs/vd_null.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_null.c	Fri Feb 12 16:29:34 2010 +0000
@@ -24,7 +24,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info =
+static const vd_info_t info =
 {
 	"Null video decoder",
 	"null",
--- a/libmpcodecs/vd_qtvideo.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_qtvideo.c	Fri Feb 12 16:29:34 2010 +0000
@@ -34,7 +34,7 @@
 #include "loader/wine/windef.h"
 #endif
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"Quicktime Video decoder",
 	"qtvideo",
 	"A'rpi",
--- a/libmpcodecs/vd_raw.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_raw.c	Fri Feb 12 16:29:34 2010 +0000
@@ -24,7 +24,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"RAW Uncompressed Video",
 	"raw",
 	"A'rpi",
--- a/libmpcodecs/vd_realvid.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_realvid.c	Fri Feb 12 16:29:34 2010 +0000
@@ -32,7 +32,7 @@
 #include "vd_internal.h"
 #include "loader/wine/windef.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"RealVideo decoder",
 	"realvid",
 	"Alex Beregszaszi",
--- a/libmpcodecs/vd_sgi.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_sgi.c	Fri Feb 12 16:29:34 2010 +0000
@@ -37,7 +37,7 @@
 #define OUT_PIXEL_STRIDE 3 /* RGB */
 
 
-static vd_info_t info =
+static const vd_info_t info =
 {
   "SGI Image decoder",
   "sgi",
--- a/libmpcodecs/vd_theora.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_theora.c	Fri Feb 12 16:29:34 2010 +0000
@@ -27,7 +27,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
    "Theora/VP3",
    "theora",
    "David Kuehling",
--- a/libmpcodecs/vd_vfw.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_vfw.c	Fri Feb 12 16:29:34 2010 +0000
@@ -28,7 +28,7 @@
 #include "loader/wine/driver.h"
 #include "loader/wine/vfw.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 #ifdef BUILD_VFWEX
 	"Win32/VfWex video codecs",
 	"vfwex",
--- a/libmpcodecs/vd_xanim.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_xanim.c	Fri Feb 12 16:29:34 2010 +0000
@@ -34,7 +34,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info = {
+static const vd_info_t info = {
 	"XAnim codecs",
 	"xanim",
 	"A'rpi & Alex",
--- a/libmpcodecs/vd_xvid4.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_xvid4.c	Fri Feb 12 16:29:34 2010 +0000
@@ -378,7 +378,7 @@
  * Module structure definition
  ****************************************************************************/
 
-static vd_info_t info =
+static const vd_info_t info =
 {
 	"XviD 1.0 decoder",
 	"xvid",
--- a/libmpcodecs/vd_zrmjpeg.c	Fri Feb 12 14:25:25 2010 +0000
+++ b/libmpcodecs/vd_zrmjpeg.c	Fri Feb 12 16:29:34 2010 +0000
@@ -36,7 +36,7 @@
 
 #include "vd_internal.h"
 
-static vd_info_t info =
+static const vd_info_t info =
 {
 	"Zoran MJPEG Video passthrough",
 	"zrmjpeg",