From: Emil Velikov Date: Sat, 17 Aug 2013 21:24:26 +0000 (+0100) Subject: vl/idct: cleanup all idct buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d260360d8588aa7678660db5ad660c724f529ec;p=mesa.git 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 Signed-off-by: Emil Velikov --- 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