summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-07 13:22:22 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-07 13:54:47 +0100
commitf06e18595a32be2e83e63d527dcb3edfb9e5b895 (patch)
treeccde99ad3103d04af7b177578fab5eb6814403f5 /gst
parent8a8a02e756229b87747ebfc6233b3726fcef989a (diff)
jp2kdecimator: fix copy/paste errors in expressions
Correct formulae found in ITU T.800, B.12.1.[345] Coverity 1139649, 1139650, 1139651
Diffstat (limited to 'gst')
-rw-r--r--gst/jp2kdecimator/jp2kcodestream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/jp2kdecimator/jp2kcodestream.c b/gst/jp2kdecimator/jp2kcodestream.c
index 42aba2e52..d4f5451ce 100644
--- a/gst/jp2kdecimator/jp2kcodestream.c
+++ b/gst/jp2kdecimator/jp2kcodestream.c
@@ -227,7 +227,7 @@ packet_iterator_next_rpcl (PacketIterator * it)
|| (it->cur_y == it->ty0
&& ((it->try0 * it->two_nl_r) %
(it->two_ppy * it->two_nl_r) != 0)))
- && ((it->cur_x % (it->xr * it->two_ppy * it->two_nl_r) == 0)
+ && ((it->cur_x % (it->xr * it->two_ppx * it->two_nl_r) == 0)
|| (it->cur_x == it->tx0
&& ((it->trx0 * it->two_nl_r) %
(it->two_ppx * it->two_nl_r) != 0)))) {
@@ -297,7 +297,7 @@ packet_iterator_next_pcrl (PacketIterator * it)
|| (it->cur_y == it->ty0
&& ((it->try0 * it->two_nl_r) %
(it->two_ppy * it->two_nl_r) != 0)))
- && ((it->cur_x % (it->xr * it->two_ppy * it->two_nl_r) == 0)
+ && ((it->cur_x % (it->xr * it->two_ppx * it->two_nl_r) == 0)
|| (it->cur_x == it->tx0
&& ((it->trx0 * it->two_nl_r) %
(it->two_ppx * it->two_nl_r) != 0)))) {
@@ -370,7 +370,7 @@ packet_iterator_next_cprl (PacketIterator * it)
|| (it->cur_y == it->ty0
&& ((it->try0 * it->two_nl_r) %
(it->two_ppy * it->two_nl_r) != 0)))
- && ((it->cur_x % (it->xr * it->two_ppy * it->two_nl_r) == 0)
+ && ((it->cur_x % (it->xr * it->two_ppx * it->two_nl_r) == 0)
|| (it->cur_x == it->tx0
&& ((it->trx0 * it->two_nl_r) %
(it->two_ppx * it->two_nl_r) != 0)))) {