Commit f8ca77096a for ffmpeg

commit f8ca77096a71636003d8a38a6857d5401336aedb
Author: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Date:   Mon Nov 23 09:50:18 2026 -0800

    tests/api/api-movenc-test: print warning counts to the ref

    Compare them against the FATE ref instead of hardcoded checks.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Signed-off-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>

diff --git a/tests/api/api-movenc-test.c b/tests/api/api-movenc-test.c
index 53bcb2f8b3..03d86cecb9 100644
--- a/tests/api/api-movenc-test.c
+++ b/tests/api/api-movenc-test.c
@@ -96,6 +96,7 @@ static void init_count_warnings(void)
 static void reset_count_warnings(void)
 {
     av_log_set_callback(av_log_default_callback);
+    printf("%s warnings: %d\n", cur_name, num_warnings);
 }

 static int io_write(void *opaque, const uint8_t *buf, int size)
@@ -529,12 +530,11 @@ int main(int argc, char **argv)
     close_out();

     reset_count_warnings();
-    check(num_warnings == 0, "Unexpected warnings printed");

     // Same as the previous one, but disable avoid_negative_ts (which
     // would require using an edit list, but with empty_moov, one can't
     // write a sensible edit list, when the start timestamps aren't known).
-    // This should trigger a warning - we check that the warning is produced.
+    // This should trigger a warning, which the reference output records.
     init_count_warnings();
     init_out("empty-moov-no-elst-no-adjust");
     av_dict_set(&opts, "movflags", "+frag_keyframe+empty_moov", 0);
@@ -545,7 +545,6 @@ int main(int argc, char **argv)
     close_out();

     reset_count_warnings();
-    check(num_warnings > 0, "No warnings printed for unhandled start offset");

     // Verify that delay_moov produces the same as empty_moov for
     // simple input
@@ -812,7 +811,6 @@ int main(int argc, char **argv)
     close_out();
     clear_duration = 0;
     reset_count_warnings();
-    check(num_warnings > 0, "No warnings printed for filled in durations");

     // Test with an IO buffer size that is too small to hold a full fragment;
     // this will cause write_data_type to be called with the type unknown.
diff --git a/tests/ref/fate/api-movenc b/tests/ref/fate/api-movenc
index 0e41fcf69e..34bc2db2ca 100644
--- a/tests/ref/fate/api-movenc
+++ b/tests/ref/fate/api-movenc
@@ -37,12 +37,14 @@ write_data len 1068, time 0, type sync atom moof
 write_data len 908, time 1000000, type sync atom moof
 write_data len 148, time nopts, type trailer atom -
 51dd8b93c2bd8300617df61eb7f0b214 3283 empty-moov-no-elst
+empty-moov-no-elst warnings: 0
 write_data len 36, time nopts, type header atom ftyp
 write_data len 1123, time nopts, type header atom -
 write_data len 900, time -33333, type sync atom moof
 write_data len 908, time 966667, type sync atom moof
 write_data len 148, time nopts, type trailer atom -
 0dd6f6275f5ecc49a35f7e0ab1861cfb 3115 empty-moov-no-elst-no-adjust
+empty-moov-no-elst-no-adjust warnings: 2
 write_data len 1159, time nopts, type header atom ftyp
 write_data len 796, time 0, type sync atom moof
 write_data len 788, time 1000000, type sync atom moof
@@ -127,6 +129,7 @@ write_data len 2572, time -333333, type sync atom sidx
 write_data len 996, time 5166667, type sync atom sidx
 write_data len 148, time nopts, type trailer atom -
 a8ba9703602fb24bee211d72c3fd41d3 4939 vfr-noduration
+vfr-noduration warnings: 1
 write_data len 1231, time nopts, type header atom ftyp
 write_data len 1500, time -333333, type sync atom moof
 write_data len 1500, time nopts, type unknown atom -