diff --git a/libavutil/opt.c b/libavutil/opt.c index c8413fa5e1..590146b5fb 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -1245,6 +1245,7 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit, av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_READONLY) ? 'R' : '.'); av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_BSF_PARAM) ? 'B' : '.'); av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_RUNTIME_PARAM) ? 'T' : '.'); + av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_DEPRECATED) ? 'P' : '.'); if (opt->help) av_log(av_log_obj, AV_LOG_INFO, " %s", opt->help); diff --git a/tests/ref/fate/opt b/tests/ref/fate/opt index 46ea0652f8..aac3fa0e7e 100644 --- a/tests/ref/fate/opt +++ b/tests/ref/fate/opt @@ -18,33 +18,33 @@ num64=1 flt=0.333333 dbl=0.333333 TestContext AVOptions: - -num E......... set num (from 0 to 100) (default 0) - -toggle E......... set toggle (from 0 to 1) (default 1) - -rational E......... set rational (from 0 to 10) (default 1/1) - -string E......... set string (default "default") - -escape E......... set escape str (default "\=,") - -flags E......... set flags (default cool) - cool E......... set cool flag - lame E......... set lame flag - mu E......... set mu flag - -size E......... set size (default "200x300") - -pix_fmt E......... set pixfmt (default 0bgr) - -sample_fmt E......... set samplefmt (default s16) - -video_rate E......... set videorate (default "25") - -duration E......... set duration (default 0.001) - -color E......... set color (default "pink") - -cl E......... set channel layout (default 0x137) - -bin E......... set binary value - -bin1 E......... set binary value - -bin2 E......... set binary value - -num64 E......... set num 64bit (from 0 to 100) (default 1) - -flt E......... set float (from 0 to 100) (default 0.333333) - -dbl E......... set double (from 0 to 100) (default 0.333333) - -bool1 E......... set boolean value (default auto) - -bool2 E......... set boolean value (default true) - -bool3 E......... set boolean value (default false) - -dict1 E......... set dictionary value - -dict2 E......... set dictionary value (default "happy=':-)'") + -num E.......... set num (from 0 to 100) (default 0) + -toggle E.......... set toggle (from 0 to 1) (default 1) + -rational E.......... set rational (from 0 to 10) (default 1/1) + -string E.......... set string (default "default") + -escape E.......... set escape str (default "\=,") + -flags E.......... set flags (default cool) + cool E.......... set cool flag + lame E.......... set lame flag + mu E.......... set mu flag + -size E.......... set size (default "200x300") + -pix_fmt E.......... set pixfmt (default 0bgr) + -sample_fmt E.......... set samplefmt (default s16) + -video_rate E.......... set videorate (default "25") + -duration E.......... set duration (default 0.001) + -color E.......... set color (default "pink") + -cl E.......... set channel layout (default 0x137) + -bin E.......... set binary value + -bin1 E.......... set binary value + -bin2 E.......... set binary value + -num64 E.......... set num 64bit (from 0 to 100) (default 1) + -flt E.......... set float (from 0 to 100) (default 0.333333) + -dbl E.......... set double (from 0 to 100) (default 0.333333) + -bool1 E.......... set boolean value (default auto) + -bool2 E.......... set boolean value (default true) + -bool3 E.......... set boolean value (default false) + -dict1 E.......... set dictionary value + -dict2 E.......... set dictionary value (default "happy=':-)'") Testing av_opt_is_set_to_default() name: num default:1 error: