# HG changeset patch # User takis # Date 1158741253 0 # Node ID 1d70bb4e21d63f8c91f2f1edacb72fedefaf413e # Parent 6c407dc6ab4af9743ab4eeca14b589965c3d1a70 Remove the "bf" OptionDef parameter so the equally named AVOption will take over. Move over ffmpeg.c constraint checking, but allow value of zero to disable B-frame. diff -r 6c407dc6ab4a -r 1d70bb4e21d6 utils.c --- a/utils.c Wed Sep 20 08:28:24 2006 +0000 +++ b/utils.c Wed Sep 20 08:34:13 2006 +0000 @@ -507,7 +507,7 @@ {"qmin", "min video quantiser scale (VBR)", OFFSET(qmin), FF_OPT_TYPE_INT, 2, 0, INT_MAX, V|E}, {"qmax", "max video quantiser scale (VBR)", OFFSET(qmax), FF_OPT_TYPE_INT, 31, 0, INT_MAX, V|E}, {"qdiff", "max difference between the quantiser scale (VBR)", OFFSET(max_qdiff), FF_OPT_TYPE_INT, 3, INT_MIN, INT_MAX, V|E}, -{"bf", "use 'frames' B frames", OFFSET(max_b_frames), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E}, +{"bf", "use 'frames' B frames", OFFSET(max_b_frames), FF_OPT_TYPE_INT, DEFAULT, 0, FF_MAX_B_FRAMES, V|E}, {"b_qfactor", "qp factor between p and b frames", OFFSET(b_quant_factor), FF_OPT_TYPE_FLOAT, 1.25, FLT_MIN, FLT_MAX, V|E}, {"rc_strategy", NULL, OFFSET(rc_strategy), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E}, {"b_strategy", NULL, OFFSET(b_frame_strategy), FF_OPT_TYPE_INT, 0, INT_MIN, INT_MAX, V|E},