[FFmpeg-devel] [PATCH] avcodec/cbs_h266: don't infer derived values
James Almer
jamrial at gmail.com
Sun Jul 2 16:16:29 EEST 2023
The macro is meant for coded values only.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/cbs_h266_syntax_template.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c
index ae44565a54..957735056f 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -2015,9 +2015,9 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, RWContext *rw,
infer(pps_tile_column_width_minus1[0], pic_width_in_ctbs_y - 1);
infer(pps_num_exp_tile_rows_minus1, 0);
infer(pps_tile_row_height_minus1[0], pic_height_in_ctbs_y - 1);
- infer(num_tile_columns, 1);
- infer(num_tile_rows, 1);
- infer(num_tiles_in_pic, 1);
+ current->num_tile_columns = 1;
+ current->num_tile_rows = 1;
+ current->num_tiles_in_pic = 1;
}
flag(pps_cabac_init_present_flag);
--
2.41.0
More information about the ffmpeg-devel
mailing list