Mercurial > mplayer.hg
comparison libvo/vo_pnm.c @ 14850:ba555409718b
Fix compile warnings
author | ivo |
---|---|
date | Mon, 28 Feb 2005 00:26:53 +0000 |
parents | 2ef20aa3623b |
children | e563ad582f9e |
comparison
equal
deleted
inserted
replaced
14849:d313f591d1a4 | 14850:ba555409718b |
---|---|
119 static uint32_t preinit(const char *arg) | 119 static uint32_t preinit(const char *arg) |
120 { | 120 { |
121 int ppm_type = 0, pgm_type = 0, pgmyuv_type = 0, | 121 int ppm_type = 0, pgm_type = 0, pgmyuv_type = 0, |
122 raw_mode = 0, ascii_mode = 0; | 122 raw_mode = 0, ascii_mode = 0; |
123 opt_t subopts[] = { | 123 opt_t subopts[] = { |
124 {"ppm", OPT_ARG_BOOL, &ppm_type, NULL}, | 124 {"ppm", OPT_ARG_BOOL, &ppm_type, NULL, 0}, |
125 {"pgm", OPT_ARG_BOOL, &pgm_type, NULL}, | 125 {"pgm", OPT_ARG_BOOL, &pgm_type, NULL, 0}, |
126 {"pgmyuv", OPT_ARG_BOOL, &pgmyuv_type, NULL}, | 126 {"pgmyuv", OPT_ARG_BOOL, &pgmyuv_type, NULL, 0}, |
127 {"raw", OPT_ARG_BOOL, &raw_mode, NULL}, | 127 {"raw", OPT_ARG_BOOL, &raw_mode, NULL, 0}, |
128 {"ascii", OPT_ARG_BOOL, &ascii_mode, NULL}, | 128 {"ascii", OPT_ARG_BOOL, &ascii_mode, NULL, 0}, |
129 {"outdir", OPT_ARG_MSTRZ, &pnm_outdir, NULL}, | 129 {"outdir", OPT_ARG_MSTRZ, &pnm_outdir, NULL, 0}, |
130 {"subdirs", OPT_ARG_MSTRZ, &pnm_subdirs, NULL}, | 130 {"subdirs", OPT_ARG_MSTRZ, &pnm_subdirs, NULL, 0}, |
131 {"maxfiles", OPT_ARG_INT, &pnm_maxfiles, (opt_test_f)int_pos}, | 131 {"maxfiles", OPT_ARG_INT, &pnm_maxfiles, (opt_test_f)int_pos, 0}, |
132 {NULL} | 132 {NULL, 0, NULL, NULL, 0} |
133 }; | 133 }; |
134 const char *info_message = NULL; | 134 const char *info_message = NULL; |
135 | 135 |
136 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | 136 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, |
137 MSGTR_VO_ParsingSuboptions); | 137 MSGTR_VO_ParsingSuboptions); |
307 uint8_t *curline; | 307 uint8_t *curline; |
308 uint32_t strideY = mpi->stride[0]; | 308 uint32_t strideY = mpi->stride[0]; |
309 uint32_t strideU = mpi->stride[1]; | 309 uint32_t strideU = mpi->stride[1]; |
310 uint32_t strideV = mpi->stride[2]; | 310 uint32_t strideV = mpi->stride[2]; |
311 | 311 |
312 int i, j; | 312 unsigned int i, j; |
313 | 313 |
314 if (pnm_mode == PNM_RAW_MODE) { | 314 if (pnm_mode == PNM_RAW_MODE) { |
315 | 315 |
316 if (pnm_type == PNM_TYPE_PPM) { | 316 if (pnm_type == PNM_TYPE_PPM) { |
317 if ( fprintf(outfile, "P6\n%d %d\n255\n", w, h) < 0 ) | 317 if ( fprintf(outfile, "P6\n%d %d\n255\n", w, h) < 0 ) |
431 * \return none The player will exit if anything goes wrong. | 431 * \return none The player will exit if anything goes wrong. |
432 */ | 432 */ |
433 | 433 |
434 void pnm_write_image(mp_image_t *mpi) | 434 void pnm_write_image(mp_image_t *mpi) |
435 { | 435 { |
436 static uint32_t framenum = 0, framecounter = 0, subdircounter = 0; | 436 static int framenum = 0, framecounter = 0, subdircounter = 0; |
437 char buf[BUFLENGTH]; | 437 char buf[BUFLENGTH]; |
438 static char subdirname[BUFLENGTH] = ""; | 438 static char subdirname[BUFLENGTH] = ""; |
439 FILE *outfile; | 439 FILE *outfile; |
440 | 440 |
441 if (!mpi) { | 441 if (!mpi) { |