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

James Almer jamrial at gmail.com
Sun Jul 2 15:43:37 EEST 2023


On 7/2/2023 7:15 AM, Nuo Mi wrote:
> ---
>   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,

Applied.


More information about the ffmpeg-devel mailing list