PR #26049 opened by Baptiste Coudurier (bcoudurier)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26049
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26049.patch

ISO/IEC 14496-14:2020 section 6.7.3 requires a zero compressor name in the 
MPEG-4 visual sample entry. Restrict the change to the mp4v entry in MP4 mode.




>From ab2665cd55b59b5028d6205651eca1df25be7265 Mon Sep 17 00:00:00 2001
From: Baptiste Coudurier <[email protected]>
Date: Fri, 13 Nov 2026 21:13:52 -0800
Subject: [PATCH] avformat/movenc: clear the compressor name in MP4 mp4v sample
 entries

ISO/IEC 14496-14:2020 section 6.7.3 requires a zero compressor name in the 
MPEG-4 visual sample entry. Restrict the change to the mp4v entry in MP4 mode.
---
 libavformat/movenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index c3fa66d816c..346b9e0e246 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2935,7 +2935,8 @@ static int mov_write_video_tag(AVFormatContext *s, 
AVIOContext *pb, MOVMuxContex
     avio_wb32(pb, 0); /* Data size (= 0) */
     avio_wb16(pb, 1); /* Frame count (= 1) */
 
-    find_compressor(compressor_name, 32, track);
+    if (track->mode != MODE_MP4 || track->tag != MKTAG('m','p','4','v'))
+        find_compressor(compressor_name, 32, track);
     avio_w8(pb, strlen(compressor_name));
     avio_write(pb, compressor_name, 31);
 
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to