[FFmpeg-devel] [PATCH 1/4] doc/utils: Rewrite doc for time duration syntax

Stefano Sabatini stefasab at gmail.com
Tue Oct 15 10:55:56 CEST 2013


On date Monday 2013-10-14 15:58:59 -0700, Timothy Gu encoded:
> On Oct 14, 2013 11:14 AM, "Stefano Sabatini" <stefasab at gmail.com> wrote:
[...]
> > > +
> > > + at example
> > > +[-][@var{HH}:]@var{MM}:@var{SS}[. at var{m}...]
> > > + at end example
> > > +
> > > + at var{HH} expresses the number of hours, @var{MM} the number of minutes
> > > +for a maximum of 2 digits, and @var{SS} the number of seconds for a
> > > +maximum of 2 digits. The @var{m} at the end expresses decimal value for
> > > + at var{SS}.
> > > +
> > > + at emph{or}
> > > +
> > >  @example
> > > -[-][HH:]MM:SS[.m...]
> > > -[-]S+[.m...]
> > > +[-]@var{S}+[. at var{m}...]
> > >  @end example
> >
> > I think this can be generalized to:
> > [-][[@var{HH}:]@var{MM}:]@var{SS}[. at var{m}...]
> >
> > since both HH and MM are optional
> 
> Maybe, but doesn't the 2 S's indicate that it can only be a max of 2
> digits? (I'm not good at writing synopsis and I did not read the
> parseutils.c code)

You are correct.

[...]
-- 
FFmpeg = Fantastic & Freak Merciful Pacific Energized Generator


More information about the ffmpeg-devel mailing list