graphparser: fix logic for updating the open_inputs/outputs in avfilter_graph_parse()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 1 Jul 2011 14:31:16 +0000 (16:31 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 6 Jul 2011 22:36:50 +0000 (00:36 +0200)
commitdf8c675f487bc2cda2b22541cd8e5a6d8090374d
treed0bd7c0126370f946c902680d3be36b861a7525d
parentc3b6cc61e502b8df0d5bc6b9058dfc482a08d42a
graphparser: fix logic for updating the open_inputs/outputs in avfilter_graph_parse()

Create open_inputs and open_outputs structs if they are not provided by
the user, and free them before exit.

In particular, fix NULL pointer dereference and crash, in case the
passed open_inputs/outputs is NULL and the parsing failed.
libavfilter/graphparser.c