summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c
index 6cd70054d..2fb20dbc4 100644
--- a/test/test.c
+++ b/test/test.c
@@ -71,6 +71,7 @@ static int preset = 0;
static char * preset_name = 0;
static int vfr = 0;
static int mp4_optimize = 0;
+static int ipod_atom = 0;
/* Exit cleanly on Ctrl-C */
static volatile int die = 0;
@@ -853,6 +854,10 @@ static int HandleEvents( hb_handle_t * h )
{
job->mp4_optimize = 1;
}
+ if ( ipod_atom )
+ {
+ job->ipod_atom = 1;
+ }
job->file = strdup( output );
@@ -1095,6 +1100,7 @@ static void ShowHelp()
" -4, --large-file Use 64-bit mp4 files that can hold more than\n"
" 4 GB. Note: Breaks iPod, @TV, PS3 compatibility.\n"""
" -O, --optimize Optimize mp4 files for HTTP streaming\n"
+ " -I, --ipod-atom Mark mp4 files so iPods will accept them\n"
"\n"
"### Picture Settings---------------------------------------------------------\n\n"
@@ -1253,6 +1259,7 @@ static int ParseOptions( int argc, char ** argv )
{ "output", required_argument, NULL, 'o' },
{ "large-file", no_argument, NULL, '4' },
{ "optimize", no_argument, NULL, 'O' },
+ { "ipod-atom", no_argument, NULL, 'I' },
{ "title", required_argument, NULL, 't' },
{ "longest", no_argument, NULL, 'L' },
@@ -1301,7 +1308,7 @@ static int ParseOptions( int argc, char ** argv )
int c;
c = getopt_long( argc, argv,
- "hvuC:f:4i:o:t:Lc:ma:6:s:UFN:e:E:2d789gpOP::w:l:n:b:q:S:B:r:R:Qx:TY:X:VZ:z",
+ "hvuC:f:4i:Io:t:Lc:ma:6:s:UFN:e:E:2d789gpOP::w:l:n:b:q:S:B:r:R:Qx:TY:X:VZ:z",
long_options, &option_index );
if( c < 0 )
{
@@ -1346,7 +1353,10 @@ static int ParseOptions( int argc, char ** argv )
case 'O':
mp4_optimize = 1;
break;
-
+ case 'I':
+ ipod_atom = 1;
+ break;
+
case 't':
titleindex = atoi( optarg );
break;