Commit e1b10155 authored by Janne Grunau's avatar Janne Grunau

cmdutils: move grow_array out of #if CONFIG_AVFILTER

fixes programs linking with --disable-avfilter
parent dc3e76f3
...@@ -989,6 +989,8 @@ int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame, ...@@ -989,6 +989,8 @@ int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame,
return 1; return 1;
} }
#endif /* CONFIG_AVFILTER */
void *grow_array(void *array, int elem_size, int *size, int new_size) void *grow_array(void *array, int elem_size, int *size, int new_size)
{ {
if (new_size >= INT_MAX / elem_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) ...@@ -1007,5 +1009,3 @@ void *grow_array(void *array, int elem_size, int *size, int new_size)
} }
return array; return array;
} }
#endif /* CONFIG_AVFILTER */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment