summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec_template.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-09-21 20:04:33 -0300
committerJames Almer <jamrial@gmail.com>2019-09-27 10:37:11 -0300
commitd582cc17e1f668c3b3ff5c3e36cc68c85161f0a7 (patch)
tree234317cbd0d6c359c0937e76993cfbd76904e60e /libavcodec/mpegaudiodec_template.c
parentf96a8b015f2fa62b18a613ebdb3c26da50951652 (diff)
downloadffmpeg-d582cc17e1f668c3b3ff5c3e36cc68c85161f0a7.tar.gz
avcodec: use avpriv_mpeg4audio_get_config2()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudiodec_template.c')
-rw-r--r--libavcodec/mpegaudiodec_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c
index 9cce88e263..3f1674e827 100644
--- a/libavcodec/mpegaudiodec_template.c
+++ b/libavcodec/mpegaudiodec_template.c
@@ -1851,8 +1851,8 @@ static av_cold int decode_init_mp3on4(AVCodecContext * avctx)
return AVERROR_INVALIDDATA;
}
- avpriv_mpeg4audio_get_config(&cfg, avctx->extradata,
- avctx->extradata_size * 8, 1);
+ avpriv_mpeg4audio_get_config2(&cfg, avctx->extradata,
+ avctx->extradata_size, 1, avctx);
if (!cfg.chan_config || cfg.chan_config > 7) {
av_log(avctx, AV_LOG_ERROR, "Invalid channel config number.\n");
return AVERROR_INVALIDDATA;