This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new cc866fb5e9 avformat/movenc: fix loop variable shadowing in LCEVC
stream group init
cc866fb5e9 is described below
commit cc866fb5e9ea44a730be41ec83e915eefcbfe6ba
Author: Zhao Zhili <[email protected]>
AuthorDate: Mon Mar 16 11:38:59 2026 +0800
Commit: James Almer <[email protected]>
CommitDate: Mon Mar 16 13:25:59 2026 +0000
avformat/movenc: fix loop variable shadowing in LCEVC stream group init
Signed-off-by: Zhao Zhili <[email protected]>
---
libavformat/movenc.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index ae2d5ab4f9..570dc1efef 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -8442,13 +8442,14 @@ static int mov_init(AVFormatContext *s)
AVStream *st = stg->streams[lcevc->lcevc_index];
MOVTrack *track = st->priv_data;
- for (i = 0; i < mov->nb_tracks; i++) {
- MOVTrack *trk = &mov->tracks[i];
+ for (int j = 0; j < mov->nb_tracks; j++) {
+ MOVTrack *trk = &mov->tracks[j];
- if (trk->st == stg->streams[!lcevc->lcevc_index])
+ if (trk->st == stg->streams[!lcevc->lcevc_index]) {
+ track->src_track = j;
break;
+ }
}
- track->src_track = i;
track->par->width = lcevc->width;
track->par->height = track->height = lcevc->height;
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]