summaryrefslogtreecommitdiff
path: root/libavformat/isom.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-09-21 20:06:48 -0300
committerJames Almer <jamrial@gmail.com>2019-09-27 10:37:11 -0300
commit35bbaa665246c363a1d623ea9b1e43f770e2768c (patch)
treeea441b32aae2e0e0607a6efebeea8f0f0f7f5d8d /libavformat/isom.c
parentd582cc17e1f668c3b3ff5c3e36cc68c85161f0a7 (diff)
downloadffmpeg-35bbaa665246c363a1d623ea9b1e43f770e2768c.tar.gz
avformat: use avpriv_mpeg4audio_get_config2()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/isom.c')
-rw-r--r--libavformat/isom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/isom.c b/libavformat/isom.c
index fa2e318099..edd0d81063 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -547,8 +547,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
return ret;
if (st->codecpar->codec_id == AV_CODEC_ID_AAC) {
MPEG4AudioConfig cfg = {0};
- ret = avpriv_mpeg4audio_get_config(&cfg, st->codecpar->extradata,
- st->codecpar->extradata_size * 8, 1);
+ ret = avpriv_mpeg4audio_get_config2(&cfg, st->codecpar->extradata,
+ st->codecpar->extradata_size, 1, fc);
if (ret < 0)
return ret;
st->codecpar->channels = cfg.channels;