We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82d825 commit e95c6d5Copy full SHA for e95c6d5
src/oapv_param.c
@@ -392,15 +392,15 @@ static int enc_update_param_level(oapve_param_t* param)
392
u64 luma_sample_rate = (int)((double)w * h * fps);
393
int min_level_idx = 0;
394
for (int i = 0 ; i < MAX_LEVEL_NUM ; i++) {
395
- if (luma_sample_rate < max_luma_sample_rate[i]) {
+ if (luma_sample_rate <= max_luma_sample_rate[i]) {
396
min_level_idx = i;
397
break;
398
}
399
400
401
if (param->bitrate > 0) {
402
for (int i = min_level_idx; i < MAX_LEVEL_NUM; i++) {
403
- if (param->bitrate < max_coded_data_rate[i][param->band_idc]) {
+ if (param->bitrate <= max_coded_data_rate[i][param->band_idc]) {
404
405
406
0 commit comments