[FFmpeg-devel] [PATCH] Document avformat.h:match_ext()

Michael Niedermayer michaelni
Mon May 25 13:55:44 CEST 2009


On Sun, May 24, 2009 at 09:40:23PM +0200, Stefano Sabatini wrote:
> On date Sunday 2009-05-24 20:43:26 +0200, Diego Biurrun encoded:
> > On Sun, May 24, 2009 at 03:33:45PM +0200, Stefano Sabatini wrote:
> > > As in subject.
> > > --- ffmpeg.orig/libavformat/avformat.h	2009-05-24 13:40:28.000000000 +0200
> > > +++ ffmpeg/libavformat/avformat.h	2009-05-24 15:26:30.000000000 +0200
> > > @@ -1239,6 +1239,13 @@
> > >  
> > > +/**
> > > + * Returns a positive value if filename matches with one of the
> > > + * extensions in extensions, 0 otherwise.
> > 
> > extensions in extensions <-- bad
> 
> Tried to make it more explicit.
> 
> Regards.
> -- 
> FFmpeg = Fundamental and Fiendish MultiPurpose Enhancing Geek

>  avformat.h |    7 +++++++
>  1 file changed, 7 insertions(+)
> b21288b42811095cad603a0a2d71e0b6a22b7305  lavf-document-match-ext.patch
> Index: ffmpeg/libavformat/avformat.h
> ===================================================================
> --- ffmpeg.orig/libavformat/avformat.h	2009-05-24 21:34:34.000000000 +0200
> +++ ffmpeg/libavformat/avformat.h	2009-05-24 21:39:08.000000000 +0200
> @@ -1239,6 +1239,13 @@
>                 char *path, int path_size,
>                 const char *url);
>  
> +/**
> + * Returns a positive value if filename matches with one of the
> + * extensions listed in the parameter extensions, 0 otherwise.
> + *
> + * @param extensions a ','-separated list of strings representing
> + * filename extensions
> + */
>  int match_ext(const char *filename, const char *extensions);

id say:

/**
 * Returns a positive value if the given filename has one of the
 * given extensions, 0 otherwise.
 *
 * @param ext_list a ','-separated list of filename extensions
 */


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090525/c259ae6d/attachment.pgp>



More information about the ffmpeg-devel mailing list