[MPlayer-cvslog] r32117 - in trunk/libmpcodecs: ve.c ve_lavc.c ve_libdv.c ve_nuv.c ve_qtvideo.c ve_raw.c ve_vfw.c ve_x264.c ve_xvid4.c

diego subversion at mplayerhq.hu
Thu Sep 9 18:38:11 CEST 2010


Author: diego
Date: Thu Sep  9 18:38:11 2010
New Revision: 32117

Log:
Mark video encoder vf_info_t structs as const.

Modified:
   trunk/libmpcodecs/ve.c
   trunk/libmpcodecs/ve_lavc.c
   trunk/libmpcodecs/ve_libdv.c
   trunk/libmpcodecs/ve_nuv.c
   trunk/libmpcodecs/ve_qtvideo.c
   trunk/libmpcodecs/ve_raw.c
   trunk/libmpcodecs/ve_vfw.c
   trunk/libmpcodecs/ve_x264.c
   trunk/libmpcodecs/ve_xvid4.c

Modified: trunk/libmpcodecs/ve.c
==============================================================================
--- trunk/libmpcodecs/ve.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -27,14 +27,14 @@
 #include "mp_image.h"
 #include "vf.h"
 
-extern vf_info_t ve_info_lavc;
-extern vf_info_t ve_info_vfw;
-extern vf_info_t ve_info_raw;
-extern vf_info_t ve_info_libdv;
-extern vf_info_t ve_info_xvid;
-extern vf_info_t ve_info_qtvideo;
-extern vf_info_t ve_info_nuv;
-extern vf_info_t ve_info_x264;
+extern const vf_info_t ve_info_lavc;
+extern const vf_info_t ve_info_vfw;
+extern const vf_info_t ve_info_raw;
+extern const vf_info_t ve_info_libdv;
+extern const vf_info_t ve_info_xvid;
+extern const vf_info_t ve_info_qtvideo;
+extern const vf_info_t ve_info_nuv;
+extern const vf_info_t ve_info_x264;
 
 /* Please do not add any new encoders here. If you want to implement a new
  * encoder, add it to libavcodec, except for wrappers around external

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_lavc.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -1049,7 +1049,7 @@ static int vf_open(vf_instance_t *vf, ch
     return 1;
 }
 
-vf_info_t ve_info_lavc = {
+const vf_info_t ve_info_lavc = {
     "libavcodec encoder",
     "lavc",
     "A'rpi, Alex, Michael",

Modified: trunk/libmpcodecs/ve_libdv.c
==============================================================================
--- trunk/libmpcodecs/ve_libdv.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_libdv.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -124,7 +124,7 @@ static int vf_open(vf_instance_t *vf, ch
     return 1;
 }
 
-vf_info_t ve_info_libdv = {
+const vf_info_t ve_info_libdv = {
     "DV encoder using libdv",
     "libdv",
     "A'rpi",

Modified: trunk/libmpcodecs/ve_nuv.c
==============================================================================
--- trunk/libmpcodecs/ve_nuv.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_nuv.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -244,7 +244,7 @@ static int vf_open(vf_instance_t *vf, ch
   return 1;
 }
 
-vf_info_t ve_info_nuv = {
+const vf_info_t ve_info_nuv = {
   "nuv encoder",
   "nuv",
   "Albeu",

Modified: trunk/libmpcodecs/ve_qtvideo.c
==============================================================================
--- trunk/libmpcodecs/ve_qtvideo.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_qtvideo.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -348,7 +348,7 @@ static int vf_open(vf_instance_t *vf, ch
     return 1;
 }
 
-vf_info_t ve_info_qtvideo = {
+const vf_info_t ve_info_qtvideo = {
     "Quicktime video encoder using win32 DLLs",
     "qtvideo",
     "Sascha Sommer",

Modified: trunk/libmpcodecs/ve_raw.c
==============================================================================
--- trunk/libmpcodecs/ve_raw.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_raw.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -167,7 +167,7 @@ static int vf_open(vf_instance_t *vf, ch
     return 1;
 }
 
-vf_info_t ve_info_raw = {
+const vf_info_t ve_info_raw = {
     "raw encoder",
     "raw",
     "jwe21 at cam.ac.uk",

Modified: trunk/libmpcodecs/ve_vfw.c
==============================================================================
--- trunk/libmpcodecs/ve_vfw.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_vfw.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -367,7 +367,7 @@ static int vf_open(vf_instance_t *vf, ch
     return 1;
 }
 
-vf_info_t ve_info_vfw = {
+const vf_info_t ve_info_vfw = {
     "Win32/VfW encoders",
     "vfw",
     "A'rpi",

Modified: trunk/libmpcodecs/ve_x264.c
==============================================================================
--- trunk/libmpcodecs/ve_x264.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_x264.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -304,7 +304,7 @@ static int vf_open(vf_instance_t *vf, ch
     return 1;
 }
 
-vf_info_t ve_info_x264 = {
+const vf_info_t ve_info_x264 = {
     "H.264 encoder",
     "x264",
     "Bernhard Rosenkraenzer <bero at arklinux.org>",

Modified: trunk/libmpcodecs/ve_xvid4.c
==============================================================================
--- trunk/libmpcodecs/ve_xvid4.c	Thu Sep  9 18:17:27 2010	(r32116)
+++ trunk/libmpcodecs/ve_xvid4.c	Thu Sep  9 18:38:11 2010	(r32117)
@@ -1518,7 +1518,7 @@ static const char *errorstring(int err)
  * Module structure definition
  ****************************************************************************/
 
-vf_info_t ve_info_xvid = {
+const vf_info_t ve_info_xvid = {
 	"XviD 1.0 encoder",
 	"xvid",
 	"Marco Belli <elcabesa at inwind.it>, Edouard Gomez <ed.gomez at free.fr>",


More information about the MPlayer-cvslog mailing list