[Mesa-dev] [PATCH 5/7] vl/idct: cleanup all idct buffers
Emil Velikov
emil.l.velikov at gmail.com
Mon Aug 19 09:00:08 PDT 2013
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 <christian.koenig at amd.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gallium/auxiliary/vl/vl_mpeg12_decoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
index 5782f62..f838e74 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
--
1.8.3.4
More information about the mesa-dev
mailing list