Open dcb314 opened 3 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) {
Looks like a bug and that should've been SLICE_TYPE_B; I guess it should affect AVC encoding on Gen9 gpus.
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) {