Skip to content

problem with the conditional expression for finding level #64

@luboe

Description

@luboe

there is a problem with the formula for obtaining the level in the enc_update_param_level function of the oapv_param.c file.
To include a max value in the LEVEL table, "<=" must be used instead of "<".
Please check the conditional expression of the code below and correct it.

for (int i = 0 ; i < MAX_LEVEL_NUM ; i++) {
    // HERE
    if (luma_sample_rate < max_luma_sample_rate[i]) {   
        min_level_idx = i;

for (int i = min_level_idx; i < MAX_LEVEL_NUM; i++) {
    // HERE
    if (param->bitrate < max_coded_data_rate[i][param->band_idc]) {

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions