ports/multimedia/jmref/files/patch-lencod_src_rdopt.c
Stefan Eßer eca93e998d Fix build with -fno-common
While here add the ISO/IEC and ITU licenses and fix a compiler warning
regarding a mis-compiled comparison (!a == b) --> (!(a == b)) to not
compare !a with b (while !(a == b) was clearly intended).
2020-09-29 10:50:13 +00:00

11 lines
395 B
C

--- lencod/src/rdopt.c.orig 2020-09-29 10:35:54 UTC
+++ lencod/src/rdopt.c
@@ -834,7 +834,7 @@ distblk rdcost_for_8x8blocks (Macroblock *currMB, // -
}
//----- coded block pattern (for CABAC only) -----
- if (!currSlice->symbol_mode == CAVLC)
+ if (!(currSlice->symbol_mode == CAVLC))
{
dataPart = &(currSlice->partArr[partMap[SE_CBP]]);
eep_dp = &(dataPart->ee_cabac);