Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2020-07-11 03:16:34 +0300
committerHenrik Gramner <henrik@gramner.com>2020-07-13 15:59:51 +0300
commitd69fc655a2973f8fcf9125e0d5a83e8cd3e6920e (patch)
tree3ddb75b59567b0cdb4841b00aacb5606baad4e46 /include
parent1b9792f3389c154aac6509b02f5eba17fceb59db (diff)
Add enum entries for the maximum valid metadata values
A bitstream may contain values larger than the currently defined entries, but it's technically UB to put such values into an enum. Discovered in Firefox through fuzzing with UBSan.
Diffstat (limited to 'include')
-rw-r--r--include/dav1d/headers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dav1d/headers.h b/include/dav1d/headers.h
index d7e8a2b..f9b89f3 100644
--- a/include/dav1d/headers.h
+++ b/include/dav1d/headers.h
@@ -127,6 +127,7 @@ enum Dav1dColorPrimaries {
DAV1D_COLOR_PRI_SMPTE431 = 11,
DAV1D_COLOR_PRI_SMPTE432 = 12,
DAV1D_COLOR_PRI_EBU3213 = 22,
+ DAV1D_COLOR_PRI_RESERVED = 255,
};
enum Dav1dTransferCharacteristics {
@@ -147,6 +148,7 @@ enum Dav1dTransferCharacteristics {
DAV1D_TRC_SMPTE2084 = 16, ///< PQ
DAV1D_TRC_SMPTE428 = 17,
DAV1D_TRC_HLG = 18, ///< hybrid log/gamma (BT.2100 / ARIB STD-B67)
+ DAV1D_TRC_RESERVED = 255,
};
enum Dav1dMatrixCoefficients {
@@ -164,6 +166,7 @@ enum Dav1dMatrixCoefficients {
DAV1D_MC_CHROMAT_NCL = 12, ///< Chromaticity-derived
DAV1D_MC_CHROMAT_CL = 13,
DAV1D_MC_ICTCP = 14,
+ DAV1D_MC_RESERVED = 255,
};
enum Dav1dChromaSamplePosition {