summaryrefslogtreecommitdiff
path: root/avconv_opt.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-03-03 08:23:08 -0800
committerMartin Storsjö <martin@martin.st>2013-03-07 09:35:24 +0200
commit54b298fe5650c124c29a8283cfd05024ac409d3a (patch)
treebe859b9f5bf9bd26c815acb7f759200f318def2c /avconv_opt.c
parent64e4386974b976070fc22ec3153e163de4a3e14e (diff)
lavc: Deprecate the deinterlace functions in libavcodec
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'avconv_opt.c')
-rw-r--r--avconv_opt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/avconv_opt.c b/avconv_opt.c
index 7c58f49e3b..5bb7fb75f5 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -1715,12 +1715,14 @@ static int opt_vsync(void *optctx, const char *opt, const char *arg)
return 0;
}
+#if FF_API_DEINTERLACE
static int opt_deinterlace(void *optctx, const char *opt, const char *arg)
{
av_log(NULL, AV_LOG_WARNING, "-%s is deprecated, use -filter:v yadif instead\n", opt);
do_deinterlace = 1;
return 0;
}
+#endif
int opt_cpuflags(void *optctx, const char *opt, const char *arg)
{
@@ -2057,8 +2059,10 @@ const OptionDef options[] = {
"select the pass number (1 or 2)", "n" },
{ "passlogfile", OPT_VIDEO | HAS_ARG | OPT_STRING | OPT_EXPERT | OPT_SPEC, { .off = OFFSET(passlogfiles) },
"select two pass log file name prefix", "prefix" },
+#if FF_API_DEINTERLACE
{ "deinterlace", OPT_VIDEO | OPT_EXPERT , { .func_arg = opt_deinterlace },
"this option is deprecated, use the yadif filter instead" },
+#endif
{ "vstats", OPT_VIDEO | OPT_EXPERT , { &opt_vstats },
"dump video coding statistics to file" },
{ "vstats_file", OPT_VIDEO | HAS_ARG | OPT_EXPERT , { opt_vstats_file },