aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-03-03 08:23:08 -0800
committerMichael Niedermayer <michaelni@gmx.at>2013-03-03 21:11:48 +0100
commit2cffe38df3df8ee1ec0fea0b2a2d3fed6e75da0d (patch)
treedab880ca9080ed4e999efaef60a4ca54293b1be3 /ffmpeg_opt.c
parent9af8179cdb5eb05e9b29b0a4d0c363d22b674e95 (diff)
downloadffmpeg-2cffe38df3df8ee1ec0fea0b2a2d3fed6e75da0d.tar.gz
Deprecate deinterlaced in libavcodec.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 8d198f82de..89aee67fef 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -2128,12 +2128,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
static int opt_timecode(void *optctx, const char *opt, const char *arg)
{
@@ -2521,8 +2523,10 @@ const OptionDef options[] = {
"select the pass number (1 to 3)", "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
{ "psnr", OPT_VIDEO | OPT_BOOL | OPT_EXPERT, { &do_psnr },
"calculate PSNR of compressed frames" },
{ "vstats", OPT_VIDEO | OPT_EXPERT , { &opt_vstats },