diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-01-26 12:56:36 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-01-27 16:56:47 +0100 |
commit | 27db2bf0009345a50f97f2516ebc458535442745 (patch) | |
tree | 53f9c31ca7f01983e65df11240f9bea25386f14f /ffmpeg_opt.c | |
parent | 43af18ef8bd97123b85c02877aa22a0f4ea56ab5 (diff) | |
download | ffmpeg-27db2bf0009345a50f97f2516ebc458535442745.tar.gz |
ffmpeg: remove -crop* and -pad* options
The options have been deprecated and are non-operational since more than
two years.
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r-- | ffmpeg_opt.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index 09bbc9cf27..b285f4ce88 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -149,18 +149,6 @@ static void init_options(OptionsContext *o, int is_input) o->chapters_input_file = INT_MAX; } -static int opt_frame_crop(void *optctx, const char *opt, const char *arg) -{ - av_log(NULL, AV_LOG_FATAL, "Option '%s' has been removed, use the crop filter instead\n", opt); - return AVERROR(EINVAL); -} - -static int opt_pad(void *optctx, const char *opt, const char *arg) -{ - av_log(NULL, AV_LOG_FATAL, "Option '%s' has been removed, use the pad filter instead\n", opt); - return -1; -} - static int opt_sameq(void *optctx, const char *opt, const char *arg) { av_log(NULL, AV_LOG_ERROR, "Option '%s' was removed. " @@ -2490,24 +2478,6 @@ const OptionDef options[] = { "set pixel format", "format" }, { "bits_per_raw_sample", OPT_VIDEO | OPT_INT | HAS_ARG, { &frame_bits_per_raw_sample }, "set the number of bits per raw sample", "number" }, - { "croptop", OPT_VIDEO | HAS_ARG, { .func_arg = opt_frame_crop }, - "Removed, use the crop filter instead", "size" }, - { "cropbottom", OPT_VIDEO | HAS_ARG, { .func_arg = opt_frame_crop }, - "Removed, use the crop filter instead", "size" }, - { "cropleft", OPT_VIDEO | HAS_ARG, { .func_arg = opt_frame_crop }, - "Removed, use the crop filter instead", "size" }, - { "cropright", OPT_VIDEO | HAS_ARG, { .func_arg = opt_frame_crop }, - "Removed, use the crop filter instead", "size" }, - { "padtop", OPT_VIDEO | HAS_ARG, { .func_arg = opt_pad }, - "Removed, use the pad filter instead", "size" }, - { "padbottom", OPT_VIDEO | HAS_ARG, { .func_arg = opt_pad }, - "Removed, use the pad filter instead", "size" }, - { "padleft", OPT_VIDEO | HAS_ARG, { .func_arg = opt_pad }, - "Removed, use the pad filter instead", "size" }, - { "padright", OPT_VIDEO | HAS_ARG, { .func_arg = opt_pad }, - "Removed, use the pad filter instead", "size" }, - { "padcolor", OPT_VIDEO | HAS_ARG, { .func_arg = opt_pad }, - "Removed, use the pad filter instead", "color" }, { "intra", OPT_VIDEO | OPT_BOOL | OPT_EXPERT, { &intra_only }, "deprecated use -g 1" }, { "vn", OPT_VIDEO | OPT_BOOL | OPT_OFFSET, { .off = OFFSET(video_disable) }, |