PR #26028 opened by michaelni
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26028
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26028.patch

Forgejo Fairy reads this file from the default branch and includes it
in the prompts of its reviews.



From e4f6f8624367fd20a62ebd96a89d24ad3d6f722a Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <[email protected]>
Date: Fri, 13 Nov 2026 15:15:15 +0100
Subject: [PATCH] fairy: add the project facts for Forgejo Fairy reviews

Forgejo Fairy reads this file from the default branch and includes it
in the prompts of its reviews.
---
 fairy/project_facts.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 fairy/project_facts.md

diff --git a/fairy/project_facts.md b/fairy/project_facts.md
new file mode 100644
index 00000000000..e64b291788c
--- /dev/null
+++ b/fairy/project_facts.md
@@ -0,0 +1,18 @@
+<!-- This file is passed to all stages: triage, draft reviews, combining, 
vetting and issue investigation. Use it only for facts that are true for all of 
them, not for instructions specific to a subset. -->
+<!-- The file is always read from the default branch, not from the pull 
request head: this avoids prompt injection and applies the latest facts to old 
branches too. -->
+##FFmpeg project facts:
+
+Implementation definitions:
+* int is 32bit or more, 1 byte is 8 bit
+* two’s complement
+* Signed >> acts on negative numbers by sign extension
+
+The FFmpeg test suite is called FATE. Its tests must be portable.
+Each new codec, parser, filter and format should have a fate test, when 
possible.
+Multimedia files used in fate tests are stored in fate-suite.ffmpeg.org.
+To upload a new file to the fate samples, the pull request author has to send 
a mail to samples-request at ffmpeg dot org. (you can tell this email address 
and procedure when it seems that this is not understood)
+FATE samples that are 10kb (100kb for video) or less do not need to be 
trimmed. samples that are over 1mb should be trimmed if possible (sometimes its 
not possible and that's ok)
+API and FATE tests should not hard-code expected values in source code. 
Expected output belongs in tests/ref/*, with the test printing actual results 
and FATE comparing them against the reference files. It is ok to also print the 
expected result as part of printing the current value when the expected is very 
stable. Tests that compare to hardcoded values and fail directly should not be 
approved, even when hidden behind helper macros such as CHECK(). Exception is 
CMP = grep
+side data attached by ffmpeg code complies with the documented constraints of 
its type. Producers must ensure this; consumers may assume it.
+AVCodecContext.get_buffer2() buffers need to respect 
avcodec_align_dimensions2(). Decoders and Encoders may assume this additional 
padding has been allocated.
+Big-endian AArch64 is not supported.
-- 
2.54.0

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

Reply via email to