Implement a new registration system for filters.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 24 Nov 2009 23:47:33 +0000 (23:47 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 24 Nov 2009 23:47:33 +0000 (23:47 +0000)
commit86a60fa1acc685013d23c58a29cc5f06a7a97bd9
tree0074be605cb60da6dbd2edb8578128b37af90899
parentd0df2fcc3530e3d2ac48db7c4c716d32af7859bd
Implement a new registration system for filters.

Create a new static array containing pointers to the AVFilter
definitions, so that the non-constant next filter in the AVFilter
struct is not anymore required and the AVFilter definitions may be
stored in shareable memory.

Also change the signature for avfilter_register(), make it return an
int since it may fail if there is not enough space in the static array
for the registered filters.

Originally committed as revision 20605 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavfilter/avfilter.c
libavfilter/avfilter.h