summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2013-08-17 22:24:26 +0100
committerChristian König <[email protected]>2013-08-19 18:32:08 +0200
commit1d260360d8588aa7678660db5ad660c724f529ec (patch)
tree72568cc747fb54a1b039e9f45ead82026640c04e /src/gallium
parent5354d2e76a929a2bb898005ef4a19a68580bd922 (diff)
vl/idct: cleanup all idct buffers
Code should loop through and cleanup the three (VL_NUM_COMPONENTS) idct buffers, rather than doing the first one three times. Reviewed-by: Christian König <[email protected]> Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
index 5782f620e61..f838e74210d 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
@@ -198,7 +198,7 @@ cleanup_idct_buffer(struct vl_mpeg12_buffer *buf)
assert(buf);
for (i = 0; i < 3; ++i)
- vl_idct_cleanup_buffer(&buf->idct[0]);
+ vl_idct_cleanup_buffer(&buf->idct[i]);
}
static bool