summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-02-17 11:18:27 +0100
committerClément Bœsch <ubitux@gmail.com>2012-02-19 02:18:29 +0100
commitb117c392376c32e7c67022c0bf7c2da61dee5bb1 (patch)
tree131bc967dacd300af95a4d840d879217fe1c5d49 /doc
parentf07553756150b694926495095e4975394ab3836e (diff)
examples/filtering: fix deprecated function calls warnings.
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/filtering.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/filtering.c b/doc/examples/filtering.c
index d837fb6cc8..fa8cb89fe7 100644
--- a/doc/examples/filtering.c
+++ b/doc/examples/filtering.c
@@ -55,7 +55,7 @@ static int open_input_file(const char *filename)
return ret;
}
- if ((ret = av_find_stream_info(fmt_ctx)) < 0) {
+ if ((ret = avformat_find_stream_info(fmt_ctx, NULL)) < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot find stream information\n");
return ret;
}
@@ -70,7 +70,7 @@ static int open_input_file(const char *filename)
dec_ctx = fmt_ctx->streams[video_stream_index]->codec;
/* init the video decoder */
- if ((ret = avcodec_open(dec_ctx, dec)) < 0) {
+ if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot open video decoder\n");
return ret;
}
@@ -205,7 +205,7 @@ int main(int argc, char **argv)
/* pull filtered pictures from the filtergraph */
while (avfilter_poll_frame(buffersink_ctx->inputs[0])) {
- av_vsink_buffer_get_video_buffer_ref(buffersink_ctx, &picref, 0);
+ av_buffersink_get_buffer_ref(buffersink_ctx, &picref, 0);
if (picref) {
display_picref(picref, buffersink_ctx->inputs[0]->time_base);
avfilter_unref_buffer(picref);
@@ -218,7 +218,7 @@ end:
avfilter_graph_free(&filter_graph);
if (dec_ctx)
avcodec_close(dec_ctx);
- av_close_input_file(fmt_ctx);
+ avformat_close_input(&fmt_ctx);
if (ret < 0 && ret != AVERROR_EOF) {
char buf[1024];