[FFmpeg-devel] [PATCH] New registration system for avfilter filters
Stefano Sabatini
stefano.sabatini-lala
Mon Nov 23 22:49:52 CET 2009
On date Monday 2009-11-23 20:40:01 +0100, Michael Niedermayer encoded:
> On Mon, Nov 23, 2009 at 01:37:20AM +0100, Stefano Sabatini wrote:
> [...]
> > +AVFilter *registered_avfilters[MAX_REGISTERED_AVFILTERS_NB + 1];
> > +
> > +int next_registered_avfilter_idx = 0;
>
> static
Fixed.
> > AVFilter *avfilter_get_by_name(const char *name)
> > {
> > - AVFilter *filter;
> > + int i;
> >
> > - for (filter = first_avfilter; filter; filter = filter->next)
> > - if (!strcmp(filter->name, name))
> > - return filter;
>
> > + for (i = 0; registered_avfilters[i] && i < MAX_REGISTERED_AVFILTERS_NB; i++)
>
> redundant check
Yes.
Patch updated.
--
FFmpeg = Friendly and Fantastic Mournful Pure Erudite God
-------------- next part --------------
A non-text attachment was scrubbed...
Name: change-avfilter-register.patch
Type: text/x-diff
Size: 2156 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091123/c99c7be2/attachment.patch>
More information about the ffmpeg-devel
mailing list