Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dcb314 opened this issue Oct 22, 2021 · 1 comment
Open

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

dcb314 opened this issue Oct 22, 2021 · 1 comment

Comments

@dcb314
Copy link

dcb314 commented Oct 22, 2021

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
Copy link

yumkam commented Oct 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants