comparison libvo/vo_jpeg.c @ 14847:5f0f4c31e18b

vo_jpeg now uses the generic int_pos() from subopt-helper.c
author ivo
date Sun, 27 Feb 2005 22:25:42 +0000
parents 00c3c4111017
children ba555409718b
comparison
equal deleted inserted replaced
14846:073b10b68565 14847:5f0f4c31e18b
311 if ( (*val >=0) && (*val<=100) ) 311 if ( (*val >=0) && (*val<=100) )
312 return 1; 312 return 1;
313 return 0; 313 return 0;
314 } 314 }
315 315
316 /** \brief Validation function for maxfiles > 0
317 */
318
319 static int int_pos(int *mf)
320 {
321 if ( *mf > 0 )
322 return 1;
323 return 0;
324 }
325
326 static uint32_t preinit(const char *arg) 316 static uint32_t preinit(const char *arg)
327 { 317 {
328 opt_t subopts[] = { 318 opt_t subopts[] = {
329 {"progressive", OPT_ARG_BOOL, &jpeg_progressive_mode, NULL}, 319 {"progressive", OPT_ARG_BOOL, &jpeg_progressive_mode, NULL},
330 {"baseline", OPT_ARG_BOOL, &jpeg_baseline, NULL}, 320 {"baseline", OPT_ARG_BOOL, &jpeg_baseline, NULL},