summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-11 11:44:51 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-11 11:44:51 +0000
commit84c038696097e5d4951ba3ad180e1100d66c0947 (patch)
tree7fec9365ce84f2dfd64e287b38bb48eda0c41b1e /tools
parentad0d70c964f852a18e9ab8124f0e7aa8876cac6e (diff)
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.c2
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;
}