latm: fix initialization on some streams when no extradata is available
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7073174551
commit
d039b6074c
@ -2661,7 +2661,8 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx,
|
||||
if (bits_consumed < 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
if (ac->oc[1].m4ac.sample_rate != m4ac.sample_rate ||
|
||||
if (!latmctx->initialized ||
|
||||
ac->oc[1].m4ac.sample_rate != m4ac.sample_rate ||
|
||||
ac->oc[1].m4ac.chan_config != m4ac.chan_config) {
|
||||
|
||||
av_log(avctx, AV_LOG_INFO, "audio config changed\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user