Revision f20f8a8b ffmpeg.c

View differences:

ffmpeg.c
161 161
static int debug = 0;
162 162
static int debug_mv = 0;
163 163
static int me_threshold = 0;
164
static int mb_threshold = 0;
164 165
extern int loop_input; /* currently a hack */
165 166

  
166 167
static int gop_size = 12;
......
1866 1867
    me_threshold = atoi(arg);
1867 1868
}
1868 1869

  
1870
static void opt_mb_threshold(const char *arg)
1871
{
1872
    mb_threshold = atoi(arg);
1873
}
1869 1874

  
1870 1875
static void opt_error_resilience(const char *arg)
1871 1876
{
......
2873 2878
                video_enc->dct_algo = dct_algo;
2874 2879
                video_enc->idct_algo = idct_algo;
2875 2880
                video_enc->me_threshold= me_threshold;
2881
                video_enc->mb_threshold= mb_threshold;
2876 2882
                video_enc->strict_std_compliance = strict;
2877 2883
                video_enc->error_rate = error_rate;
2878 2884
                video_enc->noise_reduction= noise_reduction;
......
3494 3500
    { "dct_algo", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_dct_algo}, "set dct algo",  "algo" },
3495 3501
    { "idct_algo", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_idct_algo}, "set idct algo",  "algo" },
3496 3502
    { "me_threshold", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_me_threshold}, "motion estimaton threshold",  "" },
3503
    { "mb_threshold", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_mb_threshold}, "macroblock threshold",  "" },
3497 3504
    { "er", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_error_resilience}, "set error resilience",  "n" },
3498 3505
    { "ec", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_error_concealment}, "set error concealment",  "bit_mask" },
3499 3506
    { "bf", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_b_frames}, "use 'frames' B frames", "frames" },

Also available in: Unified diff