diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 11:44:51 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 11:44:51 +0000 |
commit | 84c038696097e5d4951ba3ad180e1100d66c0947 (patch) | |
tree | 7fec9365ce84f2dfd64e287b38bb48eda0c41b1e /tools | |
parent | ad0d70c964f852a18e9ab8124f0e7aa8876cac6e (diff) | |
download | ffmpeg-84c038696097e5d4951ba3ad180e1100d66c0947.tar.gz |
Change avfilter_open() signature, from:
AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name);
to:
int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name);
This way it is possible to propagate an error code telling the reason
of the failure.
Originally committed as revision 24765 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lavfi-showfiltfmts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lavfi-showfiltfmts.c b/tools/lavfi-showfiltfmts.c index 0671bcd514..b0787ea764 100644 --- a/tools/lavfi-showfiltfmts.c +++ b/tools/lavfi-showfiltfmts.c @@ -49,7 +49,7 @@ int main(int argc, char **argv) return 1; } - if (!(filter_ctx = avfilter_open(filter, NULL))) { + if (avfilter_open(&filter_ctx, filter, NULL) < 0) { fprintf(stderr, "Inpossible to open filter with name '%s'\n", filter_name); return 1; } |