[FFmpeg-devel] [PATCH 3/3] examples/filtering: fix unused variable and return value in open_input_file().
Clément Bœsch
ubitux at gmail.com
Fri Feb 17 11:22:57 CET 2012
---
doc/examples/filtering.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/doc/examples/filtering.c b/doc/examples/filtering.c
index fa8cb89..2ca6a05 100644
--- a/doc/examples/filtering.c
+++ b/doc/examples/filtering.c
@@ -47,7 +47,7 @@ static int64_t last_pts = AV_NOPTS_VALUE;
static int open_input_file(const char *filename)
{
- int ret, i;
+ int ret;
AVCodec *dec;
if ((ret = avformat_open_input(&fmt_ctx, filename, NULL, NULL)) < 0) {
@@ -126,6 +126,7 @@ static int init_filters(const char *filters_descr)
if ((ret = avfilter_graph_config(filter_graph, NULL)) < 0)
return ret;
+ return 0;
}
static void display_picref(AVFilterBufferRef *picref, AVRational time_base)
--
1.7.9
More information about the ffmpeg-devel
mailing list