[FFmpeg-devel] [PATCH] libavfilter - avfilter_make_format_list skips sentinel -1

Lou Logan lou at lrcd.com
Wed Nov 23 00:50:29 CET 2011


On Wed, 23 Nov 2011 00:15:39 +0100, Robert Nagy wrote:

> Sorry for improper handwritten patch.
> 
> Fixes a problem where 'avfilter_make_format_list' skips last element,
> thus does no end the format list with -1.
> 
> >libavfilter\formats.c
> >
> >AVFilterFormats *avfilter_make_format_list(const int *fmts)
> >{
> >    MAKE_FORMAT_LIST();
> >+    formats->formats[count] = -1;
> >    while (count--)
> >        formats->formats[count] = fmts[count];
> >
> >    return formats;
> >}

Attached is a formatted patch. Although I'm not sure of the proper
method of formatting someone else's patch or how to correctly give
credit (anyone care to dispel my ignorance?). I'm also not qualified to
review your patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avfilter_make_format_list-skips-sentinel-1.patch
Type: text/x-patch
Size: 727 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111122/54f0abf8/attachment.bin>


More information about the ffmpeg-devel mailing list