summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-05-21 13:13:48 +0000
committersr55 <[email protected]>2011-05-21 13:13:48 +0000
commitbaf266c1ab47c8f7308ad69b34d94561d06c64a7 (patch)
treee687e7a193864d67fd97fbbff028cccabcb554e2 /test/test.c
parent4da86152462698eab575dc00411e92f825bb1548 (diff)
Remove the depreciated hb_calc_bitrate method
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3987 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c13
1 files changed, 0 insertions, 13 deletions
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 <number> Set video quality\n"
- " -S, --size <MB> Set target size\n"
" -b, --vb <kb/s> 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 )
{