diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-02-17 11:05:13 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-02-19 02:18:29 +0100 |
commit | f07553756150b694926495095e4975394ab3836e (patch) | |
tree | fb4c3fd75056f34488539b87d5264875604f182d | |
parent | 4a519b6e036bb593d868c2a424da43512215c571 (diff) | |
download | ffmpeg-f07553756150b694926495095e4975394ab3836e.tar.gz |
examples/filtering: fix implicit declarations and function mis-usage.
-rw-r--r-- | doc/examples/filtering.c | 6 |
1 files 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 <unistd.h> #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavfilter/avfiltergraph.h> -#include <libavfilter/vsrc_buffer.h> +#include <libavfilter/avcodec.h> +#include <libavfilter/buffersink.h> 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])) { |