[FFmpeg-devel] [PATCH] cbs_h266: fix typo for ols_mode_idc == 2

Nuo Mi nuomi2021 at gmail.com
Sun Jul 2 13:15:40 EEST 2023


---
 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 f1cd45f815..ae44565a54 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -712,7 +712,7 @@ static int FUNC(vps) (CodedBitstreamContext *ctx, RWContext *rw,
         }
         if (ols_mode_idc == 4 || ols_mode_idc == 0 || ols_mode_idc == 1)
             total_num_olss = current->vps_max_layers_minus1 + 1;
-        else if (ols_mode_idc = 2)
+        else if (ols_mode_idc == 2)
             total_num_olss = current->vps_num_output_layer_sets_minus2 + 2;
         else
             av_log(ctx->log_ctx, AV_LOG_ERROR,
-- 
2.25.1



More information about the ffmpeg-devel mailing list