X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_opt.c;h=0baa3b17f725dcc3e33ccaed5dd2aa8c49ceee69;hb=1ed7ca00dccb7dfe821be324c62e7937a1327393;hp=1231e097ec9a52de590a43c5b2f532c50937cf46;hpb=5cf794e0c1f7b651de4b1a61a6786fb71e9679b3;p=ffmpeg diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index 1231e097ec9..0baa3b17f72 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -30,10 +30,10 @@ #include "libavfilter/avfilter.h" #include "libavfilter/avfiltergraph.h" -#include "libavutil/audioconvert.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/avutil.h" +#include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "libavutil/fifo.h" #include "libavutil/mathematics.h" @@ -159,8 +159,11 @@ static int opt_pad(void *optctx, const char *opt, const char *arg) static int opt_sameq(void *optctx, const char *opt, const char *arg) { - av_log(NULL, AV_LOG_WARNING, "Ignoring option '%s'\n", opt); - return 0; + av_log(NULL, AV_LOG_ERROR, "Option '%s' was removed. " + "If you are looking for an option to preserve the quality (which is not " + "what -%s was for), use -qscale 0 or an equivalent quality factor option.\n", + opt, opt); + return AVERROR(EINVAL); } static int opt_video_channel(void *optctx, const char *opt, const char *arg) @@ -368,6 +371,7 @@ static int opt_map_channel(void *optctx, const char *opt, const char *arg) /** * Parse a metadata specifier passed as 'arg' parameter. + * @param arg metadata string to parse * @param type metadata type is written here -- g(lobal)/s(tream)/c(hapter)/p(rogram) * @param index for type c/p, chapter/program index is written here * @param stream_spec for type s, the stream specifier is written here @@ -586,6 +590,8 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic) ist->reinit_filters = -1; MATCH_PER_STREAM_OPT(reinit_filters, i, ist->reinit_filters, ic, st); + ist->filter_in_rescale_delta_last = AV_NOPTS_VALUE; + switch (dec->codec_type) { case AVMEDIA_TYPE_VIDEO: if(!ist->dec)