|
|
@ -212,12 +212,11 @@ int init_simple_filtergraph(InputStream *ist, OutputStream *ost) |
|
|
|
if (!ifilter->frame_queue) |
|
|
|
if (!ifilter->frame_queue) |
|
|
|
report_and_exit(AVERROR(ENOMEM)); |
|
|
|
report_and_exit(AVERROR(ENOMEM)); |
|
|
|
|
|
|
|
|
|
|
|
GROW_ARRAY(ist->filters, ist->nb_filters); |
|
|
|
|
|
|
|
ist->filters[ist->nb_filters - 1] = ifilter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GROW_ARRAY(filtergraphs, nb_filtergraphs); |
|
|
|
GROW_ARRAY(filtergraphs, nb_filtergraphs); |
|
|
|
filtergraphs[nb_filtergraphs - 1] = fg; |
|
|
|
filtergraphs[nb_filtergraphs - 1] = fg; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ist_filter_add(ist, ifilter); |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -319,8 +318,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in) |
|
|
|
if (!ifilter->frame_queue) |
|
|
|
if (!ifilter->frame_queue) |
|
|
|
report_and_exit(AVERROR(ENOMEM)); |
|
|
|
report_and_exit(AVERROR(ENOMEM)); |
|
|
|
|
|
|
|
|
|
|
|
GROW_ARRAY(ist->filters, ist->nb_filters); |
|
|
|
ist_filter_add(ist, ifilter); |
|
|
|
ist->filters[ist->nb_filters - 1] = ifilter; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int read_binary(const char *path, uint8_t **data, int *len) |
|
|
|
static int read_binary(const char *path, uint8_t **data, int *len) |
|
|
|