Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ffmpeg: backport latm: fix initialization on some streams when no ext…

…radata is available: d039b6074ca68da9b6dc88d8bb40056fee9fecb6
  • Loading branch information...
commit 06d713fefaf19cb4dfb83126ba1c078d6dcabc67 1 parent 7e7dce7
Rainer Hochecker FernetMenta authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/ffmpeg/libavcodec/aacdec.c
3  lib/ffmpeg/libavcodec/aacdec.c
View
@@ -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.