diff options
author | James Almer <jamrial@gmail.com> | 2019-09-21 20:06:48 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-09-27 10:37:11 -0300 |
commit | 35bbaa665246c363a1d623ea9b1e43f770e2768c (patch) | |
tree | ea441b32aae2e0e0607a6efebeea8f0f0f7f5d8d /libavformat/latmenc.c | |
parent | d582cc17e1f668c3b3ff5c3e36cc68c85161f0a7 (diff) |
avformat: use avpriv_mpeg4audio_get_config2()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/latmenc.c')
-rw-r--r-- | libavformat/latmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c index 1b16d752b6..db867ebf1a 100644 --- a/libavformat/latmenc.c +++ b/libavformat/latmenc.c @@ -62,7 +62,7 @@ static int latm_decode_extradata(AVFormatContext *s, uint8_t *buf, int size) av_log(s, AV_LOG_ERROR, "Extradata is larger than currently supported.\n"); return AVERROR_INVALIDDATA; } - ctx->off = avpriv_mpeg4audio_get_config(&m4ac, buf, size * 8, 1); + ctx->off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s); if (ctx->off < 0) return ctx->off; |