cmdutils: move grow_array out of #if CONFIG_AVFILTER

fixes programs linking with --disable-avfilter
This commit is contained in:
Janne Grunau 2011-09-21 14:20:20 +02:00
parent dc3e76f3f2
commit e1b1015581
1 changed files with 2 additions and 2 deletions

View File

@ -989,6 +989,8 @@ int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame,
return 1;
}
#endif /* CONFIG_AVFILTER */
void *grow_array(void *array, int elem_size, int *size, int new_size)
{
if (new_size >= INT_MAX / elem_size) {
@ -1007,5 +1009,3 @@ void *grow_array(void *array, int elem_size, int *size, int new_size)
}
return array;
}
#endif /* CONFIG_AVFILTER */