[FFmpeg-cvslog] lavc/vvc: Correct sps_num_subpics_minus1 minimum

Frank Plowman git at videolan.org
Mon Feb 26 02:06:43 EET 2024


ffmpeg | branch: release/6.1 | Frank Plowman <post at frankplowman.com> | Sun Feb 25 17:51:01 2024 +0000| [192fca4b596b81aabdd8823871828d5899d2699b] | committer: James Almer

lavc/vvc: Correct sps_num_subpics_minus1 minimum

The spec says "the value of sps_num_subpics_minus1 shall be in the
range of 0 to MaxSlicesPerAu − 1, inclusive."

Signed-off-by: Frank Plowman <post at frankplowman.com>
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 53ab7ff67e7ee9e7cae5cb0449203a7951cbe029)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=192fca4b596b81aabdd8823871828d5899d2699b
---

 libavcodec/cbs_h266_syntax_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c
index fb0ca55ce3..ad9dcbc93c 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -1130,7 +1130,7 @@ static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw,
 
     flag(sps_subpic_info_present_flag);
     if (current->sps_subpic_info_present_flag) {
-        ue(sps_num_subpics_minus1, 1, VVC_MAX_SLICES - 1);
+        ue(sps_num_subpics_minus1, 0, VVC_MAX_SLICES - 1);
         if (current->sps_num_subpics_minus1 > 0) {
             flag(sps_independent_subpics_flag);
             flag(sps_subpic_same_size_flag);



More information about the ffmpeg-cvslog mailing list