[FFmpeg-cvslog] examples/filtering: fix implicit declarations and function mis-usage.
Clément Bœsch
git at videolan.org
Sun Feb 19 02:21:16 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Feb 17 11:05:13 2012 +0100| [f07553756150b694926495095e4975394ab3836e] | committer: Clément Bœsch
examples/filtering: fix implicit declarations and function mis-usage.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f07553756150b694926495095e4975394ab3836e
---
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 06e5130..d837fb6 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])) {
More information about the ffmpeg-cvslog
mailing list