summaryrefslogtreecommitdiff
path: root/src/repacketizer.c
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-08-30 19:50:41 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-08-30 20:16:23 -0400
commitd6335abedc33283bbebf04db166b312771f64da5 (patch)
treeab2eb17585c193716bf6dcdef88213c7c244e04d /src/repacketizer.c
parent17a29c256749fa7f44930ce3648339ace9fd2506 (diff)
downloadopus-d6335abedc33283bbebf04db166b312771f64da5.tar.gz
Adds many syntactically unnecessary parentheses to silence GCC -Wparentheses.
The object code is unchanged (except ectest). Also reenables -Wparentheses, -Wsign-compare, and the MSVC warnings.
Diffstat (limited to 'src/repacketizer.c')
-rw-r--r--src/repacketizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repacketizer.c b/src/repacketizer.c
index ac4a616c..ef4a4cea 100644
--- a/src/repacketizer.c
+++ b/src/repacketizer.c
@@ -73,7 +73,7 @@ int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, int l
{
rp->toc = data[0];
rp->framesize = opus_packet_get_samples_per_frame(data, 48000);
- } else if (rp->toc&0xFC != data[0]&0xFC)
+ } else if ((rp->toc&0xFC) != (data[0]&0xFC))
{
/*fprintf(stderr, "toc mismatch: 0x%x vs 0x%x\n", rp->toc, data[0]);*/
return OPUS_CORRUPTED_DATA;