diff options
author | James Almer <jamrial@gmail.com> | 2021-04-18 10:59:35 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 11:47:24 -0300 |
commit | 3749eede66c3774799766b1f246afae8a6ffc9bb (patch) | |
tree | 36d6bf7ddb95526618f5d0b2e5787254e20d46df /libavformat/sdp.c | |
parent | e5af9203098a889f36b759652615046254d45102 (diff) | |
download | ffmpeg-3749eede66c3774799766b1f246afae8a6ffc9bb.tar.gz |
avformat: remove deprecated AVStream.codec
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 95f3fbb876..1200e553f9 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -704,24 +704,6 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int case AV_CODEC_ID_SPEEX: av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n", payload_type, p->sample_rate); -#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 break; case AV_CODEC_ID_OPUS: /* The opus RTP draft says that all opus streams MUST be declared |