[FFmpeg-devel] [PATCH 1/5] avfilter/formats: remove unused COPY_INT_LIST() macro

Clément Bœsch u at pkh.me
Mon Mar 16 23:45:17 CET 2015


On Sun, Mar 15, 2015 at 03:00:26PM +0100, Stefano Sabatini wrote:
> On date Sunday 2015-03-15 14:24:26 +0100, Clément Bœsch encoded:
> > This macro is unused since 247fa6c27c4589d0f7a427c520d782edbb6de060.
> > ---
> >  libavfilter/formats.c | 12 ------------
> >  1 file changed, 12 deletions(-)
> > 
> > diff --git a/libavfilter/formats.c b/libavfilter/formats.c
> > index f25328c..1fc7fa6 100644
> > --- a/libavfilter/formats.c
> > +++ b/libavfilter/formats.c
> > @@ -262,18 +262,6 @@ int ff_fmt_is_in(int fmt, const int *fmts)
> >      return 0;
> >  }
> >  
> > -#define COPY_INT_LIST(list_copy, list, type) {                          \
> > -    int count = 0;                                                      \
> > -    if (list)                                                           \
> > -        for (count = 0; list[count] != -1; count++)                     \
> > -            ;                                                           \
> > -    list_copy = av_calloc(count+1, sizeof(type));                       \
> > -    if (list_copy) {                                                    \
> > -        memcpy(list_copy, list, sizeof(type) * count);                  \
> > -        list_copy[count] = -1;                                          \
> > -    }                                                                   \
> > -}
> > -
> 
> LGTM.

Applied, thanks.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150316/10620e5f/attachment.asc>


More information about the ffmpeg-devel mailing list