summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-08-30 15:14:50 +0000
committersr55 <[email protected]>2009-08-30 15:14:50 +0000
commitc1adf4d22a63a6e63b4b0955e67db4f885c58c04 (patch)
treea68c251d7e3b17bd0b716c27522edceae6faa682 /test/test.c
parent959353ae4ae2259f387c202e6bb209495995d8cb (diff)
Cli:
- Remove avi/ogg/ogm references left in the CLI code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2794 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c28
1 files changed, 3 insertions, 25 deletions
diff --git a/test/test.c b/test/test.c
index 2eed88669..54d763145 100644
--- a/test/test.c
+++ b/test/test.c
@@ -2190,7 +2190,7 @@ static void ShowHelp()
"### Destination Options------------------------------------------------------\n\n"
" -o, --output <string> Set output file name\n"
- " -f, --format <string> Set output format (avi/mp4/ogm/mkv, default:\n"
+ " -f, --format <string> Set output format (mp4/mkv, default:\n"
" autodetected from file name)\n"
" -m, --markers Add chapter markers (mp4 and mkv output formats only)\n"
" -4, --large-file Use 64-bit mp4 files that can hold more than\n"
@@ -3053,12 +3053,7 @@ static int CheckOptions( int argc, char ** argv )
char * p = strrchr( output, '.' );
/* autodetect */
- if( p && !strcasecmp( p, ".avi" ) )
- {
- mux = HB_MUX_AVI;
- default_acodec = HB_ACODEC_LAME;
- }
- else if( p && ( !strcasecmp( p, ".mp4" ) ||
+ if( p && ( !strcasecmp( p, ".mp4" ) ||
!strcasecmp( p, ".m4v" ) ) )
{
if ( h264_30 == 1 )
@@ -3067,12 +3062,6 @@ static int CheckOptions( int argc, char ** argv )
mux = HB_MUX_MP4;
default_acodec = HB_ACODEC_FAAC;
}
- else if( p && ( !strcasecmp( p, ".ogm" ) ||
- !strcasecmp( p, ".ogg" ) ) )
- {
- mux = HB_MUX_OGM;
- default_acodec = HB_ACODEC_VORBIS;
- }
else if( p && !strcasecmp(p, ".mkv" ) )
{
mux = HB_MUX_MKV;
@@ -3085,11 +3074,6 @@ static int CheckOptions( int argc, char ** argv )
return 0;
}
}
- else if( !strcasecmp( format, "avi" ) )
- {
- mux = HB_MUX_AVI;
- default_acodec = HB_ACODEC_LAME;
- }
else if( !strcasecmp( format, "mp4" ) ||
!strcasecmp( format, "m4v" ) )
{
@@ -3099,12 +3083,6 @@ static int CheckOptions( int argc, char ** argv )
mux = HB_MUX_MP4;
default_acodec = HB_ACODEC_FAAC;
}
- else if( !strcasecmp( format, "ogm" ) ||
- !strcasecmp( format, "ogg" ) )
- {
- mux = HB_MUX_OGM;
- default_acodec = HB_ACODEC_VORBIS;
- }
else if( !strcasecmp( format, "mkv" ) )
{
mux = HB_MUX_MKV;
@@ -3113,7 +3091,7 @@ static int CheckOptions( int argc, char ** argv )
else
{
fprintf( stderr, "Invalid output format (%s). Possible "
- "choices are avi, mp4, m4v, ogm, ogg and mkv\n.", format );
+ "choices are mp4, m4v and mkv\n.", format );
return 1;
}
}