Skip to content

Commit e1b5e5a

Browse files
yilun-zhangstdaede
authored andcommitted
Update mix_presentation_id after intelligently selecting mix presentation
1 parent f5c2fae commit e1b5e5a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/src/iamf_dec/IAMF_decoder.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4277,8 +4277,10 @@ int iamf_decoder_internal_configure(IAMF_DecoderHandle handle,
42774277
IAMF_MixPresentation *mixp = 0;
42784278
if (ctx->mix_presentation_id != INVALID_ID)
42794279
mixp = iamf_database_get_mix_presentation(db, ctx->mix_presentation_id);
4280-
else
4280+
else {
42814281
mixp = iamf_decoder_get_best_mix_presentation(handle);
4282+
ctx->mix_presentation_id = mixp->mix_presentation_id;
4283+
}
42824284

42834285
if (mixp) {
42844286
ia_logi("get mix presentation id %" PRId64,

0 commit comments

Comments
 (0)