intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
305 stars 126 forks source link

i965_avc_encoder.c:6583:42: warning: duplicated 'if' condition #540

Open dcb314 opened 2 years ago

dcb314 commented 2 years ago

gcc compiler with flag -Wduplicated-cond says

i965_avc_encoder.c:6583:42: warning: duplicated 'if' condition [-Wduplicated-cond] 6583 | } else if (generic_state->frame_type == SLICE_TYPE_P) { / B slice / i965_avc_encoder.c:6571:42: note: previously used here 6571 | } else if (generic_state->frame_type == SLICE_TYPE_P) {

yumkam commented 1 year ago

Looks like a bug and that should've been SLICE_TYPE_B; I guess it should affect AVC encoding on Gen9 gpus.