From f07553756150b694926495095e4975394ab3836e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 17 Feb 2012 11:05:13 +0100 Subject: [PATCH] examples/filtering: fix implicit declarations and function mis-usage. --- doc/examples/filtering.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/examples/filtering.c b/doc/examples/filtering.c index 06e513026e..d837fb6cc8 100644 --- a/doc/examples/filtering.c +++ b/doc/examples/filtering.c @@ -27,11 +27,13 @@ */ #define _XOPEN_SOURCE 600 /* for usleep */ +#include #include #include #include -#include +#include +#include const char *filter_descr = "scale=78:24"; @@ -199,7 +201,7 @@ int main(int argc, char **argv) frame.pts = frame.pkt_dts == AV_NOPTS_VALUE ? frame.pkt_dts : frame.pkt_pts; /* push the decoded frame into the filtergraph */ - av_vsrc_buffer_add_frame(buffersrc_ctx, &frame); + av_vsrc_buffer_add_frame(buffersrc_ctx, &frame, 0); /* pull filtered pictures from the filtergraph */ while (avfilter_poll_frame(buffersink_ctx->inputs[0])) {