mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter: fix const use of avfilter_next
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
5c439b41d0
commit
884c7a6eb8
|
@ -277,7 +277,7 @@ const
|
||||||
#endif
|
#endif
|
||||||
AVFilter *avfilter_get_by_name(const char *name)
|
AVFilter *avfilter_get_by_name(const char *name)
|
||||||
{
|
{
|
||||||
AVFilter *f = NULL;
|
const AVFilter *f = NULL;
|
||||||
|
|
||||||
if (!name)
|
if (!name)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -343,7 +343,7 @@ static void *filter_child_next(void *obj, void *prev)
|
||||||
|
|
||||||
static const AVClass *filter_child_class_next(const AVClass *prev)
|
static const AVClass *filter_child_class_next(const AVClass *prev)
|
||||||
{
|
{
|
||||||
AVFilter *f = NULL;
|
const AVFilter *f = NULL;
|
||||||
|
|
||||||
while (prev && (f = avfilter_next(f)))
|
while (prev && (f = avfilter_next(f)))
|
||||||
if (f->priv_class == prev)
|
if (f->priv_class == prev)
|
||||||
|
|
Loading…
Reference in New Issue