[MPlayer-cvslog] CVS: main/libvo vo_jpeg.c, 1.26, 1.27 vo_pnm.c, 1.5, 1.6 vo_md5sum.c, 1.3, 1.4
Ivo van Poorten CVS
syncmail at mplayerhq.hu
Mon Feb 28 01:26:56 CET 2005
- Previous message: [MPlayer-cvslog] CVS: main/libao2 ao_alsa.c, 1.17, 1.18 ao_nas.c, 1.22, 1.23 ao_sdl.c, 1.40, 1.41 ao_sgi.c, 1.11, 1.12
- Next message: [MPlayer-cvslog] CVS: main/libvo vo_pnm.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Ivo van Poorten CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv10487/libvo
Modified Files:
vo_jpeg.c vo_pnm.c vo_md5sum.c
Log Message:
Fix compile warnings
Index: vo_jpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_jpeg.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- vo_jpeg.c 27 Feb 2005 22:25:42 -0000 1.26
+++ vo_jpeg.c 28 Feb 2005 00:26:53 -0000 1.27
@@ -219,7 +219,7 @@
static uint32_t draw_frame(uint8_t *src[])
{
- static uint32_t framecounter = 0, subdircounter = 0;
+ static int framecounter = 0, subdircounter = 0;
char buf[BUFLENGTH];
static char subdirname[BUFLENGTH] = "";
@@ -316,18 +316,18 @@
static uint32_t preinit(const char *arg)
{
opt_t subopts[] = {
- {"progressive", OPT_ARG_BOOL, &jpeg_progressive_mode, NULL},
- {"baseline", OPT_ARG_BOOL, &jpeg_baseline, NULL},
+ {"progressive", OPT_ARG_BOOL, &jpeg_progressive_mode, NULL, 0},
+ {"baseline", OPT_ARG_BOOL, &jpeg_baseline, NULL, 0},
{"optimize", OPT_ARG_INT, &jpeg_optimize,
- (opt_test_f)int_zero_hundred},
+ (opt_test_f)int_zero_hundred, 0},
{"smooth", OPT_ARG_INT, &jpeg_smooth,
- (opt_test_f)int_zero_hundred},
+ (opt_test_f)int_zero_hundred, 0},
{"quality", OPT_ARG_INT, &jpeg_quality,
- (opt_test_f)int_zero_hundred},
- {"outdir", OPT_ARG_MSTRZ, &jpeg_outdir, NULL},
- {"subdirs", OPT_ARG_MSTRZ, &jpeg_subdirs, NULL},
- {"maxfiles", OPT_ARG_INT, &jpeg_maxfiles, (opt_test_f)int_pos},
- {NULL}
+ (opt_test_f)int_zero_hundred, 0},
+ {"outdir", OPT_ARG_MSTRZ, &jpeg_outdir, NULL, 0},
+ {"subdirs", OPT_ARG_MSTRZ, &jpeg_subdirs, NULL, 0},
+ {"maxfiles", OPT_ARG_INT, &jpeg_maxfiles, (opt_test_f)int_pos, 0},
+ {NULL, 0, NULL, NULL, 0}
};
const char *info_message = NULL;
Index: vo_pnm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_pnm.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vo_pnm.c 19 Feb 2005 20:14:00 -0000 1.5
+++ vo_pnm.c 28 Feb 2005 00:26:53 -0000 1.6
@@ -121,15 +121,15 @@
int ppm_type = 0, pgm_type = 0, pgmyuv_type = 0,
raw_mode = 0, ascii_mode = 0;
opt_t subopts[] = {
- {"ppm", OPT_ARG_BOOL, &ppm_type, NULL},
- {"pgm", OPT_ARG_BOOL, &pgm_type, NULL},
- {"pgmyuv", OPT_ARG_BOOL, &pgmyuv_type, NULL},
- {"raw", OPT_ARG_BOOL, &raw_mode, NULL},
- {"ascii", OPT_ARG_BOOL, &ascii_mode, NULL},
- {"outdir", OPT_ARG_MSTRZ, &pnm_outdir, NULL},
- {"subdirs", OPT_ARG_MSTRZ, &pnm_subdirs, NULL},
- {"maxfiles", OPT_ARG_INT, &pnm_maxfiles, (opt_test_f)int_pos},
- {NULL}
+ {"ppm", OPT_ARG_BOOL, &ppm_type, NULL, 0},
+ {"pgm", OPT_ARG_BOOL, &pgm_type, NULL, 0},
+ {"pgmyuv", OPT_ARG_BOOL, &pgmyuv_type, NULL, 0},
+ {"raw", OPT_ARG_BOOL, &raw_mode, NULL, 0},
+ {"ascii", OPT_ARG_BOOL, &ascii_mode, NULL, 0},
+ {"outdir", OPT_ARG_MSTRZ, &pnm_outdir, NULL, 0},
+ {"subdirs", OPT_ARG_MSTRZ, &pnm_subdirs, NULL, 0},
+ {"maxfiles", OPT_ARG_INT, &pnm_maxfiles, (opt_test_f)int_pos, 0},
+ {NULL, 0, NULL, NULL, 0}
};
const char *info_message = NULL;
@@ -309,7 +309,7 @@
uint32_t strideU = mpi->stride[1];
uint32_t strideV = mpi->stride[2];
- int i, j;
+ unsigned int i, j;
if (pnm_mode == PNM_RAW_MODE) {
@@ -433,7 +433,7 @@
void pnm_write_image(mp_image_t *mpi)
{
- static uint32_t framenum = 0, framecounter = 0, subdircounter = 0;
+ static int framenum = 0, framecounter = 0, subdircounter = 0;
char buf[BUFLENGTH];
static char subdirname[BUFLENGTH] = "";
FILE *outfile;
Index: vo_md5sum.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_md5sum.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vo_md5sum.c 19 Jan 2005 17:10:20 -0000 1.3
+++ vo_md5sum.c 28 Feb 2005 00:26:53 -0000 1.4
@@ -104,12 +104,10 @@
static uint32_t preinit(const char *arg)
{
opt_t subopts[] = {
- {"outfile", OPT_ARG_MSTRZ, &md5sum_outfile, NULL},
- {NULL}
+ {"outfile", OPT_ARG_MSTRZ, &md5sum_outfile, NULL, 0},
+ {NULL, 0, NULL, NULL, 0}
};
- char *buf; /* buf is used to store parsed string values */
-
mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name,
MSGTR_VO_ParsingSuboptions);
@@ -204,7 +202,7 @@
uint32_t strideV = mpi->stride[2];
auth_md5Ctx md5_context;
- int i;
+ unsigned int i;
if (mpi->flags & MP_IMGFLAG_PLANAR) { /* Planar */
if (mpi->flags & MP_IMGFLAG_YUV) { /* Planar YUV */
- Previous message: [MPlayer-cvslog] CVS: main/libao2 ao_alsa.c, 1.17, 1.18 ao_nas.c, 1.22, 1.23 ao_sdl.c, 1.40, 1.41 ao_sgi.c, 1.11, 1.12
- Next message: [MPlayer-cvslog] CVS: main/libvo vo_pnm.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list