File opal-fix-ambiguous.patch of Package opal
Index: opal-3.6.1/plugins/audio/SBC/sbccodec.cxx
===================================================================
--- opal-3.6.1.orig/plugins/audio/SBC/sbccodec.cxx
+++ opal-3.6.1/plugins/audio/SBC/sbccodec.cxx
@@ -168,7 +168,8 @@ static int changerate(struct PluginSbcCo
p2=context->data2;
if(mono) {
for(int i=0;i<*out_len;i+=2) {
- int d=int(*p2++ + *p2++)/2;
+ int d=int(*p2 + *p2)/2;
+ *p2+=2;
if(d>32767)
d=32767;
if(d<-32768)
Index: opal-3.6.1/plugins/audio/iLBC/iLBC/iCBSearch.c
===================================================================
--- opal-3.6.1.orig/plugins/audio/iLBC/iLBC/iCBSearch.c
+++ opal-3.6.1/plugins/audio/iLBC/iLBC/iCBSearch.c
@@ -121,7 +121,8 @@
*ppe=0.0;
pp=buf+LPC_FILTERORDER+lMem-lTarget;
for (j=0; j<lTarget; j++) {
- *ppe+=(*pp)*(*pp++);
+ *ppe+=(*pp)*(*pp);
+ *pp++;
}
if (*ppe>0.0) {