[FFmpeg-devel] [PATCH] Add 'drawgrid' video filter
Clément Bœsch
ubitux at gmail.com
Mon May 13 20:19:54 CEST 2013
On Mon, May 13, 2013 at 08:15:54PM +0200, Michael Niedermayer wrote:
> On Mon, May 13, 2013 at 03:13:43PM +0300, Andrey Utkin wrote:
> > ---
> > doc/filters.texi | 39 +++++++++
> > libavfilter/Makefile | 1 +
> > libavfilter/allfilters.c | 1 +
> > libavfilter/vf_drawgrid.c | 206 ++++++++++++++++++++++++++++++++++++++++++++++
> > 4 files changed, 247 insertions(+)
> > create mode 100644 libavfilter/vf_drawgrid.c
> [...]
> > +AVFilter avfilter_vf_drawgrid = {
> > + .name = "drawgrid",
> > + .description = NULL_IF_CONFIG_SMALL("Draw a colored grid on the input video."),
> > + .priv_size = sizeof(DrawGridContext),
> > + .priv_class = &drawgrid_class,
> > + .init = init,
> > + .query_formats = query_formats,
> > + .inputs = avfilter_vf_drawgrid_inputs,
> > + .outputs = avfilter_vf_drawgrid_outputs,
> > + .flags = AVFILTER_FLAG_SUPPORT_TIMELINE,
> > +};
>
> This causes:
>
> Assertion (filter->flags & ((1 << 16) | (1 << 17))) != ((1 << 16) | (1 << 17)) failed at libavfilter/avfilter.c:457
>
I guess it was a good idea to add this check :)
Using AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC should fix this.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130513/3356dac4/attachment.asc>
More information about the ffmpeg-devel
mailing list