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

Git pushed a commit to branch master
in repository ffmpeg.

commit 0412377f68e91fc1dbf727d69935ed8e1102e6c7
Author:     Jun Zhao <[email protected]>
AuthorDate: Fri Aug 28 10:31:53 2026 +0800
Commit:     Jun Zhao <[email protected]>
CommitDate: Fri Sep 11 22:31:03 2026 +0000

    avformat/movenc: warn when st3d/sv3d skipped due to strict compliance
    
    Those boxes are written only with -strict unofficial. Look up the
    corresponding side data before the compliance gate, so the warning is
    emitted whenever stricter compliance prevents writing them, matching
    dvcC/hvcE. Whether a box is written is unchanged, and metadata that the
    writers do not support is still reported separately.
    
    Signed-off-by: Jun Zhao <[email protected]>
---
 libavformat/movenc.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 3e8ccd9272..550fd88a84 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2994,17 +2994,21 @@ static int mov_write_video_tag(AVFormatContext *s, 
AVIOContext *pb, MOVMuxContex
         mov_write_amve_tag(pb, track);
     }
 
-    if (track->mode == MODE_MP4 && mov->fc->strict_std_compliance <= 
FF_COMPLIANCE_UNOFFICIAL) {
+    if (track->mode == MODE_MP4) {
         const AVPacketSideData *stereo_3d = 
av_packet_side_data_get(track->st->codecpar->coded_side_data,
                                                                     
track->st->codecpar->nb_coded_side_data,
                                                                     
AV_PKT_DATA_STEREO3D);
         const AVPacketSideData *spherical_mapping = 
av_packet_side_data_get(track->st->codecpar->coded_side_data,
                                                                             
track->st->codecpar->nb_coded_side_data,
                                                                             
AV_PKT_DATA_SPHERICAL);
-        if (stereo_3d)
+        if (stereo_3d && mov->fc->strict_std_compliance <= 
FF_COMPLIANCE_UNOFFICIAL)
             mov_write_st3d_tag(s, pb, (AVStereo3D*)stereo_3d->data);
-        if (spherical_mapping)
+        else if (stereo_3d)
+            av_log(s, AV_LOG_WARNING, "Writing supported 'st3d' metadata 
requires -strict unofficial.\n");
+        if (spherical_mapping && mov->fc->strict_std_compliance <= 
FF_COMPLIANCE_UNOFFICIAL)
             mov_write_sv3d_tag(mov->fc, pb, 
(AVSphericalMapping*)spherical_mapping->data);
+        else if (spherical_mapping)
+            av_log(s, AV_LOG_WARNING, "Writing supported 'sv3d' metadata 
requires -strict unofficial.\n");
     }
 
     if (track->mode == MODE_MOV || (track->mode == MODE_MP4 &&

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