This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 47b4be8865cf9b295de8de54e3a0d23fafbc190f Author: James Almer <[email protected]> AuthorDate: Wed Jun 10 18:13:26 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Tue Jun 16 09:18:23 2026 -0300 avformat/isom: export codecpar frame_size Signed-off-by: James Almer <[email protected]> --- libavformat/isom.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libavformat/isom.c b/libavformat/isom.c index 29171fea40..8a1128ac35 100644 --- a/libavformat/isom.c +++ b/libavformat/isom.c @@ -370,10 +370,23 @@ int ff_mp4_read_dec_config_descr(void *logctx, AVStream *st, AVIOContext *pb) st->codecpar->sample_rate = cfg.ext_sample_rate; else st->codecpar->sample_rate = cfg.sample_rate; + switch (cfg.object_type) { + case AOT_AAC_MAIN: + case AOT_AAC_LC: + case AOT_AAC_SSR: + case AOT_AAC_LTP: + case AOT_ER_AAC_LC: + case AOT_ER_AAC_LD: + case AOT_ER_AAC_ELD: + case AOT_USAC: + st->codecpar->frame_size = cfg.frame_length; + break; + } av_log(logctx, AV_LOG_TRACE, "mp4a config channels %d obj %d ext obj %d " - "sample rate %d ext sample rate %d\n", cfg.channels, + "sample rate %d ext sample rate %d frame_length %d\n", cfg.channels, cfg.object_type, cfg.ext_object_type, - cfg.sample_rate, cfg.ext_sample_rate); + cfg.sample_rate, cfg.ext_sample_rate, + cfg.frame_length); if (!(st->codecpar->codec_id = ff_codec_get_id(mp4_audio_types, cfg.object_type))) st->codecpar->codec_id = AV_CODEC_ID_AAC; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
