This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 465b494ef7c8dd206f5a147344a719e3522931a2 Author: Baptiste Coudurier <[email protected]> AuthorDate: Fri Nov 20 14:36:14 2026 -0800 Commit: Baptiste Coudurier <[email protected]> CommitDate: Sat Nov 21 19:01:21 2026 +0000 avformat/movenc: clear in_movie and in_preview on AVIF alpha tracks ISO/IEC 23008-12:2025 7.5.3.1: auxiliary image sequence tracks are not displayed as such, so track_in_movie should be 0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Baptiste Coudurier <[email protected]> --- libavformat/movenc.c | 3 +++ tests/fate/mov.mak | 6 ++++++ tests/ref/fate/mov-avif-mux-animated-alpha | 32 ++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 6b0df81f76..f302a36612 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -4265,6 +4265,9 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov, /* QuickTime hint tracks are not part of the movie, preview or poster */ if (mov->mode == MODE_MOV && track->tag == MKTAG('r','t','p',' ')) flags = 0; + /* auxiliary image sequences are not displayed as such */ + if (mov->mode == MODE_AVIF && track != &mov->tracks[0]) + flags &= ~(MOV_TKHD_FLAG_IN_MOVIE | MOV_TKHD_FLAG_IN_PREVIEW); if (track->flags & MOV_TRACK_ENABLED) flags |= MOV_TKHD_FLAG_ENABLED; diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak index d49c3e9901..e8972bc3eb 100644 --- a/tests/fate/mov.mak +++ b/tests/fate/mov.mak @@ -270,6 +270,12 @@ FATE_MOV_FFMPEG_SAMPLES-$(call REMUX, AVIF OBU, AV1_DECODER AV1_PARSER) \ fate-mov-avif-mux-still-image-1-item: CMD = stream_remux obu $(TARGET_SAMPLES)/av1/still_picture_rgb.obu "" avif \ "" "-c:v av1" "-c:v copy" +# Loop a color tile and its alpha tile to exercise animated AVIF track headers. +FATE_MOV_FFMPEG_SAMPLES-$(call REMUX, AVIF MOV, AV1_DECODER AV1_PARSER) \ + += fate-mov-avif-mux-animated-alpha +fate-mov-avif-mux-animated-alpha: CMD = stream_remux mov $(TARGET_SAMPLES)/avif/gain_map_alpha_grid.avif \ + "-c:v av1 -stream_loop 1" avif "-map 0:0 -map 0:12" "-c:v av1" "-map 0 -c:v copy" + # avif demuxing - still image with 1 item. FATE_MOV_FFMPEG_SAMPLES-$(call FRAMECRC, MOV, AV1, AV1_PARSER) \ += fate-mov-avif-demux-still-image-1-item diff --git a/tests/ref/fate/mov-avif-mux-animated-alpha b/tests/ref/fate/mov-avif-mux-animated-alpha new file mode 100644 index 0000000000..1865af7f32 --- /dev/null +++ b/tests/ref/fate/mov-avif-mux-animated-alpha @@ -0,0 +1,32 @@ +b83c37a8f9c386a9593552341ac09953 *tests/data/fate/mov-avif-mux-animated-alpha.avif +3070 tests/data/fate/mov-avif-mux-animated-alpha.avif +#extradata 0: 4, 0x02e400e1 +#extradata 1: 4, 0x02bc00dd +#extradata 2: 4, 0x02e400e1 +#extradata 3: 4, 0x02bc00dd +#tb 0: 1/1 +#media_type 0: video +#codec_id 0: av1 +#dimensions 0: 128x200 +#sar 0: 0/1 +#tb 1: 1/1 +#media_type 1: video +#codec_id 1: av1 +#dimensions 1: 128x200 +#sar 1: 0/1 +#tb 2: 1/16384 +#media_type 2: video +#codec_id 2: av1 +#dimensions 2: 128x200 +#sar 2: 1/1 +#tb 3: 1/16384 +#media_type 3: video +#codec_id 3: av1 +#dimensions 3: 128x200 +#sar 3: 1/1 +0, 0, 0, 1, 446, 0xa4d2e70e +1, 0, 0, 1, 222, 0xdbb76fe9 +2, 0, 0, 16384, 446, 0xa4d2e70e +3, 0, 0, 16384, 222, 0xdbb76fe9 +2, 16384, 16384, 16384, 446, 0xa4d2e70e +3, 16384, 16384, 16384, 222, 0xdbb76fe9 -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
