From 1d260360d8588aa7678660db5ad660c724f529ec Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 17 Aug 2013 22:24:26 +0100 Subject: [PATCH] vl/idct: cleanup all idct buffers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Emil Velikov --- 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 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 -- 2.30.2