Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1984 from FernetMenta/audiocodec

ffmpeg: backport latm: fix initialization on some streams when no extrad...
  • Loading branch information...
commit 5e98e1720ec06bf37676324322e4adcf4eb848db 2 parents 89a81ea + 06d713f
@davilla davilla authored
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");
Please sign in to comment.
Something went wrong with that request. Please try again.