diff options
author | James Almer <jamrial@gmail.com> | 2019-09-21 20:04:33 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-09-27 10:37:11 -0300 |
commit | d582cc17e1f668c3b3ff5c3e36cc68c85161f0a7 (patch) | |
tree | 234317cbd0d6c359c0937e76993cfbd76904e60e /libavcodec/aac_adtstoasc_bsf.c | |
parent | f96a8b015f2fa62b18a613ebdb3c26da50951652 (diff) | |
download | ffmpeg-d582cc17e1f668c3b3ff5c3e36cc68c85161f0a7.tar.gz |
avcodec: use avpriv_mpeg4audio_get_config2()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/aac_adtstoasc_bsf.c')
-rw-r--r-- | libavcodec/aac_adtstoasc_bsf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c index 6541b1189c..e378296950 100644 --- a/libavcodec/aac_adtstoasc_bsf.c +++ b/libavcodec/aac_adtstoasc_bsf.c @@ -134,8 +134,8 @@ static int aac_adtstoasc_init(AVBSFContext *ctx) /* Validate the extradata if the stream is already MPEG-4 AudioSpecificConfig */ if (ctx->par_in->extradata) { MPEG4AudioConfig mp4ac; - int ret = avpriv_mpeg4audio_get_config(&mp4ac, ctx->par_in->extradata, - ctx->par_in->extradata_size * 8, 1); + int ret = avpriv_mpeg4audio_get_config2(&mp4ac, ctx->par_in->extradata, + ctx->par_in->extradata_size, 1, ctx); if (ret < 0) { av_log(ctx, AV_LOG_ERROR, "Error parsing AudioSpecificConfig extradata!\n"); return ret; |