[Ffmpeg-devel] [PATCH] use new way to handle "ab" option
Michael Niedermayer
michaelni
Sun Mar 4 20:31:55 CET 2007
Hi
On Sun, Mar 04, 2007 at 06:45:59PM +0100, Benoit Fouet wrote:
> Hi,
>
> Quoting Benoit Fouet <benoit.fouet at purplelabs.com>:
>
> >Quoting Michael Niedermayer <michaelni at gmx.at>:
> >
> >>Hi
> >>
> >>On Sat, Mar 03, 2007 at 10:51:54PM +0100, Benoit Fouet wrote:
>
> >>[...]
> >>
> >>> { "vframes", OPT_INT | HAS_ARG | OPT_VIDEO,
> >>>{(void*)&max_frames[CODEC_TYPE_VIDEO]}, "set the number of video
> >>> frames to record", "number" },
> >>>+ { "vb", OPT_FUNC2 | HAS_ARG | OPT_VIDEO,
> >>>{(void*)opt_default}, "set video bitrate (in bits/s)",
> >>>"bitrate", },
> >>> { "dframes", OPT_INT | HAS_ARG,
> >>>{(void*)&max_frames[CODEC_TYPE_DATA]}, "set the number of data
> >>>frames to record", "number" },
> >>> { "r", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_rate}, "set
> >>>frame rate (Hz value, fraction or abbreviation)", "rate" },
> >>> { "s", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_size}, "set
> >>>frame size (WxH or abbreviation)", "size" },
> >>>@@ -3634,7 +3628,7 @@
> >>>
> >>> /* audio options */
> >>> { "aframes", OPT_INT | HAS_ARG | OPT_AUDIO,
> >>>{(void*)&max_frames[CODEC_TYPE_AUDIO]}, "set the number of audio
> >>> frames to record", "number" },
> >>>- { "ab", HAS_ARG | OPT_AUDIO, {(void*)opt_audio_bitrate}, "set
> >>> audio bitrate (in kbit/s)", "bitrate", },
> >>>+ { "ab", OPT_FUNC2 | HAS_ARG | OPT_AUDIO,
> >>>{(void*)opt_default}, "set audio bitrate (in bits/s)",
> >>>"bitrate", },
> >>> { "aq", OPT_FLOAT | HAS_ARG | OPT_AUDIO,
> >>>{(void*)&audio_qscale}, "set audio quality (codec-specific)",
> >>>"quality", },
> >>
> >>why are the "vb" and "ab" needed here?
> >>doesnt it work without them too?
> >>
> >>
> >>[...]
> >>
>
> it does work, but i added them to have the "help menu" for both.
> of course, i can get rid of both...
yes, pleae do
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070304/e5ebfad9/attachment.pgp>
More information about the ffmpeg-devel
mailing list