[FFmpeg-cvslog] avcodec/cbs_av1: add valid range of values for num_units_in_decoding_tick
James Almer
git at videolan.org
Sun May 14 23:13:35 EEST 2023
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun May 14 17:09:38 2023 -0300| [6759983bdce1f157a19f94e881a2bc751970a5bc] | committer: James Almer
avcodec/cbs_av1: add valid range of values for num_units_in_decoding_tick
The spec states "num_units_in_decoding_tick shall be greater than 0".
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6759983bdce1f157a19f94e881a2bc751970a5bc
---
libavcodec/cbs_av1_syntax_template.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c
index e95925a493..7d16047454 100644
--- a/libavcodec/cbs_av1_syntax_template.c
+++ b/libavcodec/cbs_av1_syntax_template.c
@@ -176,7 +176,7 @@ static int FUNC(decoder_model_info)(CodedBitstreamContext *ctx, RWContext *rw,
int err;
fb(5, buffer_delay_length_minus_1);
- fb(32, num_units_in_decoding_tick);
+ fc(32, num_units_in_decoding_tick, 1, MAX_UINT_BITS(32));
fb(5, buffer_removal_time_length_minus_1);
fb(5, frame_presentation_time_length_minus_1);
More information about the ffmpeg-cvslog
mailing list