aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-09-23 23:11:12 -0300
committerJames Almer <jamrial@gmail.com>2024-09-23 23:11:12 -0300
commit0dd6f1d5bf12f236da0fac1170df8a8c579d8aeb (patch)
tree3345479c868fe36f923787e6c65d547fa69fcbbb
parentcc73bf02ba99c862a7f5995bb693ef20caeda375 (diff)
downloadffmpeg-0dd6f1d5bf12f236da0fac1170df8a8c579d8aeb.tar.gz
avformat/mov: fix setting index of LCEVC enhancement stream
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 56563be360..a2333ac1fd 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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++) {