avformat/mov: fix setting index of LCEVC enhancement stream

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-09-23 23:11:12 -03:00
parent cc73bf02ba
commit 0dd6f1d5bf

View File

@ -10238,7 +10238,7 @@ static int mov_read_header(AVFormatContext *s)
if (err < 0)
return err;
stg->params.lcevc->lcevc_index = stg->nb_streams;
stg->params.lcevc->lcevc_index = stg->nb_streams - 1;
}
for (i = 0; i < s->nb_streams; i++) {