diff mbox series

[FFmpeg-devel,RFC] avcodec/cbs_h266: Fix copy paste mistake

Message ID 20240831212545.83095-1-epirat07@gmail.com
State New
Headers show
Series [FFmpeg-devel,RFC] avcodec/cbs_h266: Fix copy paste mistake | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marvin Scholz Aug. 31, 2024, 9:25 p.m. UTC
The us macro expect the range_max here, which seems should be
MAX_UINT_BITS(hlen) here.

Fix CID1618757 Copy-paste error
---

This code is non-trivial to understand so I might be wrong
about this, it would be great if someone actually familiar
with this can have a look if my assesment is correct here.

Also if it isn't, a comment here might help to clarify things.

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

Patch

diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c
index a8f5af04d0..0704da1d40 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -1208,7 +1208,7 @@  static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw,
                            win_top_edge_ctus > current->sps_subpic_ctu_top_left_y[i]
                                ? win_top_edge_ctus - current->sps_subpic_ctu_top_left_y[i]
                                : 0,
-                           MAX_UINT_BITS(wlen), 1, i);
+                           MAX_UINT_BITS(hlen), 1, i);
                     } else {
                         infer(sps_subpic_height_minus1[i],
                               tmp_height_val -