This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit bcb0ac1d9dce86e53b0c787d4f0d225a70581d00
Author:     James Almer <[email protected]>
AuthorDate: Sat Oct 17 13:52:37 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Wed Oct 21 18:35:41 2026 -0300

    avformat/movenc: flag the alpha image in AVIF as hidden
    
    Signed-off-by: James Almer <[email protected]>
---
 libavformat/movenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 52a73ba49f..bf929b9329 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3780,12 +3780,13 @@ static int mov_write_iinf_tag(AVIOContext *pb, 
MOVMuxContext *mov, AVFormatConte
     avio_wb32(pb, 0); /* Version & flags */
     avio_wb16(pb, mov->nb_streams); /* entry_count */
 
+    av_assert2(mov->nb_streams <= 2);
     for (int i = 0; i < mov->nb_streams; i++) {
         int64_t infe_pos = avio_tell(pb);
         avio_wb32(pb, 0); /* size */
         ffio_wfourcc(pb, "infe");
         avio_w8(pb, 0x2); /* Version */
-        avio_wb24(pb, 0); /* flags */
+        avio_wb24(pb, !!i); /* flags (0x1 == hidden) */
         avio_wb16(pb, i + 1); /* item_id */
         avio_wb16(pb, 0); /* item_protection_index */
         avio_write(pb, "av01", 4); /* item_type */

-- 
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]

Reply via email to