-#if FF_API_LAVF_AVCTX
-FF_DISABLE_DEPRECATION_WARNINGS
- if (st->codec) {
- const char *mode;
- uint64_t vad_option;
-
- if (st->codec->flags & AV_CODEC_FLAG_QSCALE)
- mode = "on";
- else if (!av_opt_get_int(st->codec, "vad", AV_OPT_FLAG_ENCODING_PARAM, &vad_option) && vad_option)
- mode = "vad";
- else
- mode = "off";
-
- av_strlcatf(buff, size, "a=fmtp:%d vbr=%s\r\n",
- payload_type, mode);
- }
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif