Skip to content

Commit

Permalink
Merge pull request xbmc#1984 from FernetMenta/audiocodec
Browse files Browse the repository at this point in the history
ffmpeg: backport latm: fix initialization on some streams when no extrad...
  • Loading branch information
davilla committed Dec 25, 2012
2 parents 89a81ea + 06d713f commit 5e98e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ffmpeg/libavcodec/aacdec.c
Expand Up @@ -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");
Expand Down

0 comments on commit 5e98e17

Please sign in to comment.