summaryrefslogtreecommitdiff
path: root/libavformat/isom.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-04-18 10:59:35 -0300
committerJames Almer <jamrial@gmail.com>2021-04-27 11:47:24 -0300
commit3749eede66c3774799766b1f246afae8a6ffc9bb (patch)
tree36d6bf7ddb95526618f5d0b2e5787254e20d46df /libavformat/isom.c
parente5af9203098a889f36b759652615046254d45102 (diff)
avformat: remove deprecated AVStream.codec
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/isom.c')
-rw-r--r--libavformat/isom.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libavformat/isom.c b/libavformat/isom.c
index df98779149..35c5eb982e 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -329,22 +329,12 @@ static const AVCodecTag mp4_audio_types[] = {
int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb)
{
enum AVCodecID codec_id;
- unsigned v;
int len, tag;
int ret;
int object_type_id = avio_r8(pb);
avio_r8(pb); /* stream type */
avio_rb24(pb); /* buffer size db */
-
- v = avio_rb32(pb);
-
- // TODO: fix this with codecpar
-#if FF_API_LAVF_AVCTX
-FF_DISABLE_DEPRECATION_WARNINGS
- if (v < INT32_MAX)
- st->codec->rc_max_rate = v;
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
+ avio_rb32(pb); /* rc_max_rate */
st->codecpar->bit_rate = avio_rb32(pb); /* avg bitrate */