Skip to content
Browse files

Merge pull request #1984 from FernetMenta/audiocodec

ffmpeg: backport latm: fix initialization on some streams when no extrad...
  • Loading branch information...
2 parents 89a81ea + 06d713f commit 5e98e1720ec06bf37676324322e4adcf4eb848db @davilla davilla committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/ffmpeg/libavcodec/aacdec.c
View
3 lib/ffmpeg/libavcodec/aacdec.c
@@ -2403,7 +2403,8 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx,
if (bits_consumed < 0)
return AVERROR_INVALIDDATA;
- if (ac->m4ac.sample_rate != m4ac.sample_rate ||
+ if (!latmctx->initialized ||
+ ac->m4ac.sample_rate != m4ac.sample_rate ||
ac->m4ac.chan_config != m4ac.chan_config) {
av_log(avctx, AV_LOG_INFO, "audio config changed\n");

0 comments on commit 5e98e17

Please sign in to comment.
Something went wrong with that request. Please try again.