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

Robert Nagy ronag89 at gmail.com
Wed Nov 23 00:15:39 CET 2011


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;
>}


More information about the ffmpeg-devel mailing list