summaryrefslogtreecommitdiff
path: root/thirdparty/libtheora/decode.c
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-23 12:26:29 +0100
committerGitHub <noreply@github.com>2019-01-23 12:26:29 +0100
commitbf08c74e77acd3ff1891385dfee1b048bfbaee0e (patch)
treea75becabe69f20fb1a1ee97006e87b5022eddf3e /thirdparty/libtheora/decode.c
parent7ce0e68ec9a6b309b83d8b566ed77ea2fa60c58d (diff)
parent8c67b43ba17938f027fc343333e021962de0f9e1 (diff)
Merge pull request #25253 from akien-mga/theora-decode-ub
theora: Add upstream patch to fix UB warning
Diffstat (limited to 'thirdparty/libtheora/decode.c')
-rw-r--r--thirdparty/libtheora/decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/thirdparty/libtheora/decode.c b/thirdparty/libtheora/decode.c
index 7be66463d8..bde967b794 100644
--- a/thirdparty/libtheora/decode.c
+++ b/thirdparty/libtheora/decode.c
@@ -397,10 +397,10 @@ static int oc_dec_init(oc_dec_ctx *_dec,const th_info *_info,
int qsum;
qsum=0;
for(qti=0;qti<2;qti++)for(pli=0;pli<3;pli++){
- qsum+=_dec->state.dequant_tables[qti][pli][qi][12]+
- _dec->state.dequant_tables[qti][pli][qi][17]+
- _dec->state.dequant_tables[qti][pli][qi][18]+
- _dec->state.dequant_tables[qti][pli][qi][24]<<(pli==0);
+ qsum+=_dec->state.dequant_tables[qi][pli][qti][12]+
+ _dec->state.dequant_tables[qi][pli][qti][17]+
+ _dec->state.dequant_tables[qi][pli][qti][18]+
+ _dec->state.dequant_tables[qi][pli][qti][24]<<(pli==0);
}
_dec->pp_sharp_mod[qi]=-(qsum>>11);
}