Commit 7b5f74c065 for aom
commit 7b5f74c06553b6a3eb3ed706f1a3e34d469740cf
Author: Wan-Teh Chang <wtc@google.com>
Date: Mon Jan 12 15:36:52 2026 -0800
The unit of buffer size is bits, not bits/s
The corresponding text in the AV1 spec is the following on page 644:
These requirements depend on the following level, tier, and profile
dependent variables:
* ...
* MaxBufferSize is equal to MaxBitrate multiplied by 1 second
Change-Id: I792d3ffdafe482426c5ade3d80810263baf07e12
diff --git a/av1/decoder/obu.c b/av1/decoder/obu.c
index 815d80523c..45a3f15af6 100644
--- a/av1/decoder/obu.c
+++ b/av1/decoder/obu.c
@@ -183,7 +183,7 @@ static uint32_t read_sequence_header_obu(AV1Decoder *pbi,
aom_internal_error(&pbi->error, AOM_CODEC_UNSUP_BITSTREAM,
"AV1 does not support this combination of "
"profile, level, and tier.");
- // Buffer size in bits/s is bitrate in bits/s * 1 s
+ // Buffer size in bits is bitrate in bits/s * 1 s
seq_params->op_params[i].buffer_size = seq_params->op_params[i].bitrate;
}
if (seq_params->timing_info_present &&
diff --git a/av1/encoder/encoder.c b/av1/encoder/encoder.c
index e32bd64e81..67b780b68c 100644
--- a/av1/encoder/encoder.c
+++ b/av1/encoder/encoder.c
@@ -553,7 +553,7 @@ static void set_bitstream_level_tier(AV1_PRIMARY *const ppi, int width,
aom_internal_error(
&ppi->error, AOM_CODEC_UNSUP_BITSTREAM,
"AV1 does not support this combination of profile, level, and tier.");
- // Buffer size in bits/s is bitrate in bits/s * 1 s
+ // Buffer size in bits is bitrate in bits/s * 1 s
seq_params->op_params[i].buffer_size = seq_params->op_params[i].bitrate;
}
}