From baf266c1ab47c8f7308ad69b34d94561d06c64a7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 21 May 2011 13:13:48 +0000 Subject: Remove the depreciated hb_calc_bitrate method git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3987 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- test/test.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'test/test.c') diff --git a/test/test.c b/test/test.c index 7cf65a5cf..e1f2bc29a 100644 --- a/test/test.c +++ b/test/test.c @@ -95,7 +95,6 @@ static int crop[4] = { -1,-1,-1,-1 }; static int vrate = 0; static float vquality = -1.0; static int vbitrate = 0; -static int size = 0; static int mux = 0; static int anamorphic_mode = 0; static int modulus = 0; @@ -1962,13 +1961,6 @@ static int HandleEvents( hb_handle_t * h ) i++; } - if( size ) - { - job->vbitrate = hb_calc_bitrate( job, size ); - fprintf( stderr, "Calculated bitrate: %d kbps\n", - job->vbitrate ); - } - if( subtracks ) { char * token; @@ -2498,7 +2490,6 @@ static void ShowHelp() " same style as mencoder (x264 and ffmpeg only):\n" " option1=value1:option2=value2\n" " -q, --quality Set video quality\n" - " -S, --size Set target size\n" " -b, --vb Set video bitrate (default: 1000)\n" " -2, --two-pass Use two-pass mode\n" " -T, --turbo When using 2-pass use the turbo options\n" @@ -2885,7 +2876,6 @@ static int ParseOptions( int argc, char ** argv ) { "vb", required_argument, NULL, 'b' }, { "quality", required_argument, NULL, 'q' }, - { "size", required_argument, NULL, 'S' }, { "ab", required_argument, NULL, 'B' }, { "rate", required_argument, NULL, 'r' }, { "arate", required_argument, NULL, 'R' }, @@ -3294,9 +3284,6 @@ static int ParseOptions( int argc, char ** argv ) case 'q': vquality = atof( optarg ); break; - case 'S': - size = atoi( optarg ); - break; case 'B': if( optarg != NULL ) { -- cgit v1.2.3